Re: Following blog auth tutorial and get fatal error

2011-10-20 Thread majna
Attach 'Auth' component to Users controller or AppController


http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Following blog auth tutorial and get fatal error

2011-10-20 Thread Nate
I just followed the blog tutorial (http://book.cakephp.org/2.0/en/
tutorials-and-examples/blog/part-two.html) and now I'm following the
next tutorial that adds Authentication (http://book.cakephp.org/2.0/en/
tutorials-and-examples/blog-auth-example/auth.html)

Even after copying and pasting the UsersController class, I still get
this fatal error:

Fatal error: Call to a member function allow() on a non-object in /
Users/nate/Sites/cakeblog.local/html/app/Controller/
UsersController.php on line 8

I appreciate the help :)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php