Zend Framework 1.8 tutorial 5 zend_acl with zend_auth and controller plugin part 3

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
11,791
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 27, 2009

Learn to use Zend_Acl to create application resources and allocate permissions. Then use instance of Zend_Auth to get the user's role and check it against the resource permissions. Finally, learn the basics of MVC plugins as we make sure that the security checks are run just before the controller is called in a preDispatch method.

Part 4: http://www.youtube.com/watch?v=qSczmb4Y2k8

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (integral30)

  • Привет,

    а что тут было с этим $identiy->role (сообщают что он не объект)?

    Не могу сам разобраться что-то...

    Какое именно видео по ACL надо посмотреть?

    Помогитеее :)

    P.S. замечательные видео уроки! Спасибо!

  • @lichsys Привет.

    Надо смотреть #9

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?

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • @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

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more