I am using PHP and Zend Framwwork for developing web apps, and i want to implement login and logout concept in my application.In first step I create the auth adapter that is working well and authenticating the users.
There is a menu bar in the application where i have an anchor tag for login. After clicking the login link the login page appears.
Now my question is, I want that when the user login with his/her valid credentials, then the login text in menu changes to logout and when user logout it changes back to login.
I am using PHP and Zend Framwwork for developing web apps, and i want
Share
For such task, I have profileLink view helper that checks if a user is logged or not, and displays appropriate message:
Whit this, in the layout.phtml I just have:
The view helpers is modified version of one that I found somewhere in the net ( i don’t have a link to the original version).
Hope this will be useful to you.