Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (20)

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

  • @giuseppemacri Hi did you solve that?

  • at 07:15 you say logout and login again, when i do it, my form is displayed twice! why is that

  • by that i mean loginAction() is called twice

  • Привет,

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

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

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

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

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

  • @lichsys Привет.

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

  • Shouldn't an authentication controller resource be defined?

    I got an error because of that and defining it I managed to solved the error

  • Could you expand on this? I'm getting the non-object error on $role = $identiy->role as well

  • Check my acl improvement videl

  • Comment removed

  • Can I get that solution on PM too?

    Thanks

  • thanks! I've received the file right now and I'm trying to fix it

  • Can't paste it here, because you tube have limited characters. I will send you link over the PM.

  • thank you metK1337!

    I am waiting for the solution

  • Comment removed

  • We solved this problem, so here I am pasting you the solution, but he will make video about that too.

  • I have sam code as you and I am getting an error:

    Notice: Trying to get property of non-object in H:\Spletne strani\E\e\application\plugins­\AccessCheck.php on line 20

    Very useful tuts btw, really good job!

  • Line 20: $role = $identity->role;

  • me too i have the same problem!

    otherwise good job!

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