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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -