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()->read(); $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.
stecipec 1 year ago 3
Fatal error: Call to a member function getStorage() on a non-object
$identity = $this->_auth->getStorage()->read();
Do you have any idea?
giuseppemacri 1 year ago
@giuseppemacri Hi did you solve that?
alchemikification 7 months ago
at 07:15 you say logout and login again, when i do it, my form is displayed twice! why is that
oORij 1 year ago
by that i mean loginAction() is called twice
Привет,
а что тут было с этим $identiy->role (сообщают что он не объект)?
Не могу сам разобраться что-то...
Какое именно видео по ACL надо посмотреть?
Помогитеее :)
P.S. замечательные видео уроки! Спасибо!
lichsys 1 year ago
@lichsys Привет.
Надо смотреть #9
integral30 1 year ago
Shouldn't an authentication controller resource be defined?
I got an error because of that and defining it I managed to solved the error
jerkan7 2 years ago
Could you expand on this? I'm getting the non-object error on $role = $identiy->role as well
Cerebrusification 2 years ago
Check my acl improvement videl
integral30 2 years ago
Comment removed
rylphs 2 years ago
Can I get that solution on PM too?
Thanks
robos85 2 years ago
thanks! I've received the file right now and I'm trying to fix it
mymind86 2 years ago
Can't paste it here, because you tube have limited characters. I will send you link over the PM.
metK1337 2 years ago
thank you metK1337!
I am waiting for the solution
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!
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()->read(); $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.
stecipec 1 year ago 3
Fatal error: Call to a member function getStorage() on a non-object
$identity = $this->_auth->getStorage()->read();
Do you have any idea?
giuseppemacri 1 year ago
@giuseppemacri Hi did you solve that?
alchemikification 7 months ago
at 07:15 you say logout and login again, when i do it, my form is displayed twice! why is that
oORij 1 year ago
by that i mean loginAction() is called twice
oORij 1 year ago
Привет,
а что тут было с этим $identiy->role (сообщают что он не объект)?
Не могу сам разобраться что-то...
Какое именно видео по ACL надо посмотреть?
Помогитеее :)
P.S. замечательные видео уроки! Спасибо!
lichsys 1 year ago
@lichsys Привет.
Надо смотреть #9
integral30 1 year ago
Shouldn't an authentication controller resource be defined?
I got an error because of that and defining it I managed to solved the error
jerkan7 2 years ago
Could you expand on this? I'm getting the non-object error on $role = $identiy->role as well
Cerebrusification 2 years ago
Check my acl improvement videl
integral30 2 years ago
Comment removed
rylphs 2 years ago
Can I get that solution on PM too?
Thanks
robos85 2 years ago
thanks! I've received the file right now and I'm trying to fix it
mymind86 2 years ago
Can't paste it here, because you tube have limited characters. I will send you link over the PM.
metK1337 2 years ago
thank you metK1337!
I am waiting for the solution
mymind86 2 years ago
Comment removed
metK1337 2 years ago
We solved this problem, so here I am pasting you the solution, but he will make video about that too.
metK1337 2 years ago
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!
metK1337 2 years ago
Line 20: $role = $identity->role;
metK1337 2 years ago
me too i have the same problem!
otherwise good job!
mymind86 2 years ago