this is in my app controller

function beforeFilter( ) {
        parent::beforeFilter();
                $this->Auth->loginAction = array('admin' => false, 'controller' 
=>
'users', 'action' => 'login');
                $this->Auth->loginRedirect = '/';
                $this->Auth->logoutRedirect = '/';

On Sep 12, 6:34 am, brian <[email protected]> wrote:
> What does your AppControll:beforeFilter() look like?
>
> On Fri, Sep 11, 2009 at 5:59 PM, cakephp_rocks
>
>
>
> <[email protected]> wrote:
>
> > hello everybody  i have a quick Auth question
>
> > i have created a login form in a element in its in default layout
> > whenever i login it wont referer to the page i was
> > it redirects  back to ' / '
> > so i tried this dosent seem to work $this->Auth->loginRedirect =
> > $referer;
>
> > so if i use the users/login instead of  element form it referers me
> > back where i was any idea
>
> > thanks- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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