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

Active Directory Authenticated Proxy Server with Squid or CNTLM -

java - @PluginTarget(Node.class) not registering as neo4j plugin -

python - Calculate STD manually using Groupby Pandas DataFrame -