Tuesday, August 3, 2010

Re: loginRedirect

On Mon, Aug 2, 2010 at 9:36 PM, Alexsandro <miojoalex@gmail.com> wrote:
> Hello guys!
>
> Well I'm doing an application where after I log in I want to be
> directed to a standard module. But I'm with a doubt in loginRedirect
> where I Seto code $ this-> Auth-> loginRedirect = array ('controller'
> => 'users', 'action' => 'area_restrita'); just not working.
> beforeFilter function () (
> Security: setHash ('sha256') / / we set the algorithm that we use, the
> default is sha1
> $ This-> Auth-> loginRedirect = array ('controller' => 'users',
> 'action' => 'area_restrita');

There should not be any spaces in there, and it's $this, not $This.

$this->Auth->loginRedirect =

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

No comments: