We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon\Http\Response\Cookies::set(): Call to undefined method __construct() on class Phalcon\Http\Cookie

phalcon 1.2.0 error!!! 1.1.0 is success

Fatal error: Phalcon\Http\Response\Cookies::set(): Call to undefined method __construct() on class Phalcon\Http\Cookie in G:\htdocs\www.limianwang.com\apps\controllers\GiftController.php on line 323
$di->set( 'cookies', function () {
    $cookies = new Phalcon\Http\Response\Cookies();
    $cookies->useEncryption( false );
    return $cookies;
});

cookies set error!

$this->cookies->set('gift_order','2221dddd',time()+86400,'/');


98.9k

Can you please report this on Github?