I am new in Zend Framework 2.
I have created a "Admin" module and also created "UserController" and "AlbumController". UserController contains login and logout actions. AlbumController contains normal CRUD and welcome action.
Now, How can i redirect page on welcome page when i directly access http://localhost/websites/zendtest/public/admin/login
when i already loggedin.
And, same question is How can i redirect page on login page when i directly access http://localhost/websites/zendtest/public/admin/album/welcome
when i already not loggedin.
Can any one suggest me solution for that?
I also have another question, how can i use controller action value in layout.phtml, because i have MenuContoller for creating menu. So i need return array from MenuController in layout.phtml for create dynamic menu.
So, how can i do that?