Vote count:
0
Please help me when i'm trying to get the current user in indexAction() function in My controller i got this message
Zend\Mvc\Controller\PluginManager::get was unable to fetch or create an instance for zfcUserIdentity
i'm using this statement to get the current user id :
$id =(int) $this->zfcUserIdentity()->getid() ;
asked 27 secs ago
Aucun commentaire:
Enregistrer un commentaire