I am a new user for zend framework. For my applications I need to keep track of currently logged in user, to do this I know I have to use zend_Auth and zend_Acl, but I don’t know how to do that.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well then the documentation would be the first place for you.
Zend_Auth: http://framework.zend.com/manual/en/zend.auth.html
Zend_Acl: http://framework.zend.com/manual/en/zend.acl.html
To get an easier access you could try this great tutorial series on youtube: http://www.youtube.com/watch?v=UmtGClgImpo which covers every step from auth to acl.
To keep track of something you can use Zend_Registry, e.g.
and use the auth instance, e.g.
But this all is described very well in the tutorial.
Good Luck!