php - Zend Framework 2 get identity in view helper -
I need to display the amount of user cart on each page of the e-Shop app.
To achieve this, I have created a visual assistant, but I do not know how to get the identity of the user ...
Appreciate your help
Normally a Dependency injection examples will be required here, but in this case, $ this-> view-> identity ()
(by calling the Identity view assistant) you should give the time that is after you.
Comments
Post a Comment