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 -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -