yii2


Yii2 doesn't send cookies, with twig extension


In my Controller i use
\Yii::$app->response->cookies->add(new Cookie(['name' => 'name','value' => 'test'));
then in the end of action
return $this->render('index.twig', $params);
But cookies doesn't send, because yii (https://github.com/yiisoft/yii2-twig/blob/master/ViewRenderer.php#L121) use Twig Template class (https://github.com/fabpot/Twig/blob/master/lib/Twig/Template.php#L343),
in Template Class function render run ob_start, and then in Yii (https://github.com/yiisoft/yii2/blob/master/framework/web/Response.php#L341) used functions headers_sent and my cookies doesn't send, how i can fix this bug?

Related Links

How to add sendgrid mailer function in yii2?
Yii2 dataprovider- exclude first 2 elements
Many to many relationships in Yii2
yii2 swiftmailer link does not work
Call to a member function saveAs() on null (I can not update if I do not select an image)
yii2 dataProvider- offset in dataprovider doesn't work [duplicate]
Yii2 Active Record get the latest record
how to show json formated data in GridView
How to convert HTML page to image in yii2
Does Yii2 take care of the important security concerns?
Swift_IoException Unable to open file for reading yii2
Yii2 change the theming for just one view file
Trying to get property of non-object in action column in yii2
Default main.php config file for all projects in Yii2
Yii2 unit testing :: Access denied for user 'something'#'localhost' (using password: NO)
insert into oracle from yii2 data type number

Categories

HOME
ionic-framework
gitlab
stock
raspberry-pi
iot
dot
octobercms
cvs
sqlite-net-extensions
graphql
packages
dxl
umd
contact
communication
dax
numeral.js
google-apps-marketplace
google-cloud-spanner
flask-wtforms
ups
percona
quartz-scheduler
dosgi
progressive-web-apps
code-review
django-cms
scichart
dbext
swiftlint
zapier
object-detection
tokenize
csrf-protection
bootstrap-tour
restful-authentication
blazemeter
microsoft-sync-framework
centos6.5
dynamic-featured-image
nhapi
rst2pdf
minitab
typo3-6.2.x
subdomains
skia
preg-match
create-table
form-data
jquery-bootgrid
x11-forwarding
event-driven
dynamics-crm-2013
sharefile
unspecified
xenforo
reportbuilder
reportingservices-2005
node-gyp
eigenvalue
unixodbc
menuitem
azure-application-gateway
pnotify
aurelia-validation
snmptrapd
windows-iot-core-10
iso8601
cubes
angular-strap
gridpane
savon
home-directory
transmitfile
paypal-express
websitepanel
livequery
system.management
cyclomatic-complexity
metaclass
embedded-code
ionic
interrupted-exception
clipperlib
streambase
umbraco6
bigbluebutton
kineticjs
csquery
nsbutton
id3v2
wordpress-theme-customize
wp-query
rebol3
poller
cloud-connect
bulkloader
ocunit
specification-pattern
jquery-knob
bitsharp
bubble-chart
custom-backend
horizontal-accordion
locationlistener
yetanotherforum
oncheckedchanged
fluent-interface
infrastructure
meego
libs
swing-app-framework
multiple-languages

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App