Are you trying to set up your application for the first time? Or are you 
trying to create some other functionality.
If it's the first setup, it looks like you are over thinking this a bit. 

$this->Auth->actionPath = 'controllers/'; 
$this->Auth->authorize = 'actions';
$this->Auth->loginAction = array('controller' => 'users', 'action' => 
'login','plugin'=>'');
$this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 
'login','plugin'=>'');
$this->Auth->loginRedirect = array('controller' => 
'pages','action'=>'home','plugin'=>'');

These are the lines I have in my App Controller beforeFilter(). The Auth 
component does all the "checking" for you. Once the Session is 
Authenticated you don't have to worry about it.
I only use the Auth->check method, if I am doing something else as part of 
another process... which is not very often.

Let me know.

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php
  • ACL RhythmicDevil
    • Re: ACL Geoff Douglas

Reply via email to