Thursday, December 20, 2012

Re: Help! - Simple authentication tutorial? Is it broken?

Hey,

I had this error:

Fatal error: Class declarations may not be nested in /srv/www/website/public_html/lib/Cake/Controller/CakeErrorController.php on line 31

and finally tracked it down to the beforeFilter existing on the users controller twice:

public function beforeFilter() {
        parent::beforeFilter();
        $this->Auth->allow('add');
    }

I deleted the second one and everything started working properly.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: