Zend Framework 1.8 tutorial 5 zend_acl with zend_auth and controller plugin part 3
Uploader Comments (integral30)
Top Comments
-
Great tutorial keep up the good work.
I have a question :What happens if u don't have anyone logged in the u don't have
Identity and the storage is empty the u get no role and this part fails $identity = $this->_auth->getStorage()->re
ad(); $role = $identity->role; I solved this with a simple check before this code if($this->_auth->hasIdentity()
) and now it works for me but i wonder how it works on the video.
-
Fatal error: Call to a member function getStorage() on a non-object
$identity = $this->_auth->getStorage()->re
ad(); Do you have any idea?
All Comments (20)
-
@giuseppemacri Hi did you solve that?
-
by that i mean loginAction() is called twice
-
at 07:15 you say logout and login again, when i do it, my form is displayed twice! why is that
-
Check my acl improvement videl
-
Could you expand on this? I'm getting the non-object error on $role = $identiy->role as well
-
Shouldn't an authentication controller resource be defined?
I got an error because of that and defining it I managed to solved the error
Привет,
а что тут было с этим $identiy->role (сообщают что он не объект)?
Не могу сам разобраться что-то...
Какое именно видео по ACL надо посмотреть?
Помогитеее :)
P.S. замечательные видео уроки! Спасибо!
lichsys 1 year ago
@lichsys Привет.
Надо смотреть #9
integral30 1 year ago