i hope this can give you some ideas : http://snook.ca/archives/cakephp/static_pages_cakephp12/
On Fri, May 16, 2008 at 10:36 PM, Mathew Nik Foscarini <[EMAIL PROTECTED]> wrote: > The beforeFilter of AppController wasn't executed, because the class wasn't > instantiated. It wasn't instantiated because the controller didn't exist. > > AppController is an abstract class that controllers extend. So if the > framework doesn't find a controller, then a Not Found error is the correct > response. > > ----- Original Message ---- > From: Andras Kende <[EMAIL PROTECTED]> > To: CakePHP <[email protected]> > Sent: Friday, May 16, 2008 2:21:58 PM > Subject: 1.2 auth missing controller/action/view - redirect to login > > > hello, > > I have a problem with 1.2 auth: > > http://www.kende.com/test/ -> redirects to login = this is good .. > > but for a missing controller/action/view : > > http://www.kende.com/test/dadadmfsf/ -> shows "Not Found" should also > redirect first to login... > > > <?php > class AppController extends Controller { > var $components = > array('Auth'); > function beforeFilter(){ > if (isset($this->Auth)) { > $this->Auth->userModel = 'User'; > $this->Auth->userScope = array('User.disabled' => 0); > $this->Auth->loginAction = '/users/login'; > $this->Auth->loginRedirect = '/websites/'; > } > } > } > ?> > > > Thank you, > > Andras Kende > http://www.kende.com > > > > > -- Marcin Domanski http://kabturek.info --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
