Hello , I updated my Phalcon from 1.3 to 2.0.6. In version 1.3 this code works fine:
$di->set('session', function() {
$session = new Phalcon\Session\Adapter\Redis(array(
'path' => "tcp://XXX.XXX.157.108:6379?weight=1"
));
@$session->start();
return $session;
});
Now my application displays this error:
'Could not connect to the Redisd server 127.0.0.1:6379' in phalcon/cache/backend/redis.zep:118
Why 127.0.0.1 ?