found what i was looking for, guess I just had to add this condition,
thanks to this post 
http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/

if (isset($this->params['admin'])) {
$this->Auth->deny(‘*’);
}
else {
$this->Auth->allow(‘*’);
}


Is there a simpler way to do it?



On 11 nov, 00:37, huoxito <[email protected]> wrote:
> I hadn't tried to use admin routes in cakephp yet. When i first read
> about I believed that I would get through it quickly but no ....
>
> I cant figure out a way to let all my actions, without the admin
> prefix, be accessed without a user logged in, authenticated by the
> Auth component.
>
> I already added this config in core.php, routes.php and
> app_controller.php respectively
>
> Configure::write('Routing.prefixes', array('admin'));
> Router::connect("/admin/:controller/:action/*", array('prefix' =>
> 'admin', 'admin' => true));
> var $components = array('Session', 'Auth');
>
> And the official doc is not clear about how to config this situation,
> or maybe I'm really missing something. I'm kind of stuck again in
> cakephp

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

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

Reply via email to