How to include Auth component in Array ? I read it there is no example
how to put into array, the only way is shown as above.

On Dec 21, 6:15 am, cricket <zijn.digi...@gmail.com> wrote:
> On Mon, Dec 20, 2010 at 10:33 AM, John Maxim <goog...@gmail.com> wrote:
> > @Ahmed,
>
> > I found the solution for redirecting, put this function in your
> > controller:
>
> > function beforeFilter()
> >                {
> >                        parent::beforeFilter();
> >                        $this->Auth->allow('*');
> >                }
>
> > ***
> > It should solve the redirecting problem. I did it and the auto-hashing
> > by AUTH component works like a charm.
>
> Note that using '*' makes all your non-admin actions available, though.
>
> And you should consider putting Auth in AppController's $components
> array. That way, you can disallow actions for other controllers.
>
> Make sure to carefully read the Auth section in the manual.
>
> > However, I'm still looking for
> > solution/tips for auto-logging in after successful registration, can
> > anyone here shed some light ?
>
> http://api.cakephp.org/class/auth-component#method-AuthComponentlogin

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to