I'm using Auth component to manage an admin panel. I use admin route
for all function in admin panel. In order to allow all other actions
without login, I add them in beforeFilter method. For instance:
function beforeFilter() {
parent::beforeFilter(); //Controller general initialization
$this->Auth->allow('index');
$this->Auth->allow('price_list');
...
}
But this is error prone when the controller has a lot of actions.
Is there a single instruction with Auth component for allowing all
actions with non-administrative route?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---