i am getting error as "Catchable fatal error: Argument 1 passed to Plugin_AccessCheck::__construct() must be an instance of Zend_Acl, none given, called in C:\wamp\bin\php\zend_framwork\library\Zend\Application\Resource\Frontcontroller.php on line 117 and defined in C:\workspace\Application_Library\application\plugins\AccessCheck.php on line 8"
Not sure what i am putting wrong .. i did exactly what you did in the tutorial. please suggest
There's also another error that says "Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource 'error' not found' which was fixed simply by adding authentication to the list of resources. Also wondering why it doesn't happen in your setup. I'm on a WAMP environment if that makes any difference.
Anyway, I am a complete newbie with ZF and your tutorials have quickly got me up and running. Thanks a lot for taking the time to make them!
I'm on 1.11.9 and I encountered a small problem when implementing this tutorial. I got an error that says "Notice: Trying to get property of non-object " and seems to refer to the $role variable. I added a conditional line that checks whether auth already has an identity before accessing the storage, and if not, to display the login page. Seems to work. But I was wondering why it didn't happen on your end.
Something I don't understand. You create a pluging that checks the User can reach each (controller / action). This plugin uses the role we gave to that User.
But, the (Authentication / login) will use the same plugin and the User's role is not defined before the first login. How can ACL know if the (Authentication / login) is reachable or not ?
I get an error about it at home (getting property of null object) and you don't have in your video. Why ?
I had played around a bit with ZF first but never got the hang of it. Now I have 1.10, and of course it's a bit different than your tutorial but it was easy to adapt and it all makes sence now! I stopped with ZF before because I didn't understand how to use ACL and AUTH inside the app.
But now I have a fully functional authentication on my app. (Going on to the next tutorial :D)
Thanks for posting the videos, I've found them very very informative. I have a big project I'm working on using Zend Framework and I was wondering if there are any good books out there to learn more about the project? I've tried using ZendFramework in Action but alot of it seems outdated since newer versions of ZF have been released
Thats the problem with ZF. There is a number of books available on Amazon, but ZF is evolving so fast with so many changes that those books become useless in months.
I've seen SOME books being updated to 1.8 but what good are they if 1.9 is almost out and from what i've seen even some of the tutorials will have to be redone.
There are even talks about ZF2.
Until ZF finds a comfort zone and stops making new version every few months, there are no book materials i can recommend.
@delboy1978uk As long as you do not have any errors related to ACL this issue does not appear. There is a small discussion on my form in "Unsafe behavior with un-registered resources" thread. But you will find there is no solid answer yet.
my browser wont display anything other than 'too many redirects'!
the strange thing is that its intermittant :-s
i was thinking, could we put some conditionals to check whether an action existed or not, because we have to register every controller and action in our acl library, which means that 404s dont work and we get the exception instead
im new to zend framework btw however your tutoriasls are excellent so thank you very much!
First i want to thank you for supplying this great video for ZF beginners. You explain really good and in details of the certain Class. I watched all your tutorial videos on youtube and I wanna say you did a good job reviewing ZF's confusing documentation. Thanks for sharing and making this screen cast. I'm looking forward for future tutorials :)
Hello, I viewed at all your Zend Tutorials from the beginning to this one, you have made a really good job, your explanations are clear, and you go right to the things that we need to know. One thing I would like to see is how to show/hide links (menus) based on the ACL (how to organize the things). Also what about Internationalization, how to manage a shopping cart, is there something in ZF to manage payments through Paypal, Moneybookers. Thanks a lot (waiting for other tutorials :-)
i am getting error as "Catchable fatal error: Argument 1 passed to Plugin_AccessCheck::__construct() must be an instance of Zend_Acl, none given, called in C:\wamp\bin\php\zend_framwork\library\Zend\Application\Resource\Frontcontroller.php on line 117 and defined in C:\workspace\Application_Library\application\plugins\AccessCheck.php on line 8"
Not sure what i am putting wrong .. i did exactly what you did in the tutorial. please suggest
mailamiton 1 week ago
There's also another error that says "Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource 'error' not found' which was fixed simply by adding authentication to the list of resources. Also wondering why it doesn't happen in your setup. I'm on a WAMP environment if that makes any difference.
Anyway, I am a complete newbie with ZF and your tutorials have quickly got me up and running. Thanks a lot for taking the time to make them!
dzul1983 6 months ago
I'm on 1.11.9 and I encountered a small problem when implementing this tutorial. I got an error that says "Notice: Trying to get property of non-object " and seems to refer to the $role variable. I added a conditional line that checks whether auth already has an identity before accessing the storage, and if not, to display the login page. Seems to work. But I was wondering why it didn't happen on your end.
dzul1983 6 months ago
Comment removed
RdoubleOK 6 months ago
@oldaf1 Thank you :)
this is resolved in tutorial 9
integral30 1 year ago
And I forgot: I'm very happy to have discovered your video tutorials. It helped me a lot ! Thanks for all.
oldaf1 1 year ago
Hello,
Something I don't understand. You create a pluging that checks the User can reach each (controller / action). This plugin uses the role we gave to that User.
But, the (Authentication / login) will use the same plugin and the User's role is not defined before the first login. How can ACL know if the (Authentication / login) is reachable or not ?
I get an error about it at home (getting property of null object) and you don't have in your video. Why ?
oldaf1 1 year ago
Comment removed
oldaf1 1 year ago
Thanks a million times!
I had played around a bit with ZF first but never got the hang of it. Now I have 1.10, and of course it's a bit different than your tutorial but it was easy to adapt and it all makes sence now! I stopped with ZF before because I didn't understand how to use ACL and AUTH inside the app.
But now I have a fully functional authentication on my app. (Going on to the next tutorial :D)
ThePope90 1 year ago
Thanks alot for your reply and time.
Can you recommend any newer books that make use of ZF 1.8 as that's the version I think I'll settle on for my project.
Furthermore, what do you think about CakePHP or CodeIgniter as alternative MVC frameworks to ZF.
Thanks again for your time
ovoalways 2 years ago
Thanks for posting the videos, I've found them very very informative. I have a big project I'm working on using Zend Framework and I was wondering if there are any good books out there to learn more about the project? I've tried using ZendFramework in Action but alot of it seems outdated since newer versions of ZF have been released
ovoalways 2 years ago
Thats the problem with ZF. There is a number of books available on Amazon, but ZF is evolving so fast with so many changes that those books become useless in months.
I've seen SOME books being updated to 1.8 but what good are they if 1.9 is almost out and from what i've seen even some of the tutorials will have to be redone.
There are even talks about ZF2.
Until ZF finds a comfort zone and stops making new version every few months, there are no book materials i can recommend.
integral30 2 years ago
hello, Have an error here. If i go to "authentication/login" i see twice the login request. Becasue preDispatch is running twice in this action.
I see this when i complete the 6 tutorial.
Thanks, R
ronenAZA 2 years ago
Oh no, I can't believe i missed that. Thank you so much for pointing this out. Will get on this right away.
integral30 2 years ago
@integral30 did you sort this out? i was getting the predispatch thing twice too :-(
delboy1978uk 1 year ago
@delboy1978uk As long as you do not have any errors related to ACL this issue does not appear. There is a small discussion on my form in "Unsafe behavior with un-registered resources" thread. But you will find there is no solid answer yet.
integral30 1 year ago
@integral30 thanks for your quick reply!
my browser wont display anything other than 'too many redirects'!
the strange thing is that its intermittant :-s
i was thinking, could we put some conditionals to check whether an action existed or not, because we have to register every controller and action in our acl library, which means that 404s dont work and we get the exception instead
im new to zend framework btw however your tutoriasls are excellent so thank you very much!
all the best!
delboy1978uk 1 year ago
First i want to thank you for supplying this great video for ZF beginners. You explain really good and in details of the certain Class. I watched all your tutorial videos on youtube and I wanna say you did a good job reviewing ZF's confusing documentation. Thanks for sharing and making this screen cast. I'm looking forward for future tutorials :)
GeoDot92 2 years ago
oh thank you, thank you, very nice of you to say that.
More is definitely coming.
You also reminded me that I may have forgotten to do the linkups to ZF's documentation like I said was going to in the videos.
integral30 2 years ago
Hello, I viewed at all your Zend Tutorials from the beginning to this one, you have made a really good job, your explanations are clear, and you go right to the things that we need to know. One thing I would like to see is how to show/hide links (menus) based on the ACL (how to organize the things). Also what about Internationalization, how to manage a shopping cart, is there something in ZF to manage payments through Paypal, Moneybookers. Thanks a lot (waiting for other tutorials :-)
outbackinblack 2 years ago 2
Thank you for a constructive feedback.
I will surely address these topics next.
I was short on ideas but now have something to work on.
Stay tuned for more :-)
integral30 2 years ago