Re: Doubt about admin routes / actions and Auth component

2010-11-14 Thread huoxito
I reversed the order > var $components = array('Auth', 'Session'); but it's still not working as expected, i'm running it on cake 1.3.5 On 13 nov, 17:28, cricket wrote: > On Fri, Nov 12, 2010 at 8:20 PM, huoxito wrote: > > I have this in my app_controller > > > var $components = array('Sessio

Re: Doubt about admin routes / actions and Auth component

2010-11-13 Thread cricket
On Fri, Nov 12, 2010 at 8:20 PM, huoxito wrote: > I have this in my app_controller > > var $components = array('Session', 'Auth'); The order of those should be reversed: var $components = array('Auth', 'Session'); At least, at one time that was important. I don't know if it's still necessary.

Re: Doubt about admin routes / actions and Auth component

2010-11-12 Thread huoxito
I have this in my app_controller var $components = array('Session', 'Auth'); function beforeFilter(){ parent::beforeFilter(); # thanks to http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/ if (isset($this->params['admin'])) {

Re: Doubt about admin routes / actions and Auth component

2010-11-12 Thread cricket
On Thu, Nov 11, 2010 at 11:44 PM, huoxito wrote: > Thats what I thought as well, but it doesnt happen, > > If I just let $this->Auth->allow(‘*’) in my app_controller all actions > are accessible without being logged in, even my admin_* methods Perhaps Auth isn't properly configured in AppControll

Re: Doubt about admin routes / actions and Auth component

2010-11-11 Thread huoxito
Thats what I thought as well, but it doesnt happen, If I just let $this->Auth->allow(‘*’) in my app_controller all actions are accessible without being logged in, even my admin_* methods On 11 nov, 18:22, cricket wrote: > On Wed, Nov 10, 2010 at 10:26 PM, huoxito wrote: > > found what i was loo

Re: Doubt about admin routes / actions and Auth component

2010-11-11 Thread cricket
On Wed, Nov 10, 2010 at 10:26 PM, huoxito wrote: > 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->d

Re: Doubt about admin routes / actions and Auth component

2010-11-10 Thread huoxito
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 si

Doubt about admin routes / actions and Auth component

2010-11-10 Thread huoxito
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