cakephp3 session deprecated !!
I have update into my project the last version of cakephp core. Now I get this error:
Deprecated (16384): SessionHelper has been deprecated. Use request->session() instead. [CORE/src/View/Helper/sessionHelper.php, line 39]
The error I think is in this line:
if ($this->session->read('admin_logged_in')){
What should I use instead?
In Cakehp 3.7, use getSession() instead.
$this->request->getSession()->read('admin_logged_in');
Aucun commentaire