Answer the question
In order to leave comments, you need to log in
Why doesn't cookie work in Phalcon 3.1.2?
I can't send cookies to the user, I can't understand why
I create an i18n object, which I register in the allocator.
$di->setShared('i18n', function() use ($di) {
$dispatcher = $di->getShared('dispatcher');
$cookies = $di->getShared('cookies');
$i18n_config = require_once __CONFIGSDIR__ . '/i18n.php';
$i18n = new I18n($i18n_config, $dispatcher, $cookies);
return $i18n;
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question