On Nov 4, 2:35 am, cricket <[email protected]> wrote:
> On Wed, Nov 3, 2010 at 12:23 AM,matsakaw<[email protected]> wrote:
>
> > $this->Auth->loginRedirect = array('controller' => 'home');
>
> The plot thickens. What's this controller for? And why do you not
> specify an action? Do you have any routes set up for it?
>

i have routes set up to display the splash page home.ctp after
successful login.
so should it be $this->Auth->loginRedirect = array('controller' =>
'pages', 'action' => 'home');  ??
i don't have a controller named home, just the home.ctp from cake's
default. i just picked up
this loginRedirect thing from another tutorial.

> FYI, it'd be better to remove your comments from posted code, unless
> it's pertinent to the problem, as it makes things very difficult to
> read.

so sorry about those comments.  those were notes for me, as i grapple
on how to
make this Acl/Auth component work. i forgot to erase them before
posting.

> >> I'm wondering if there's something else configured that's
> >> hidden from you.
> > I was also suspecting that.  Maybe ISPConfig's has RewriteBase that is
> > wrong? I can ask web host.
>
> That might be it.
>

there was nothing wrong with web host configurations.

i also tried your foo and bar functions.   i did not see the same
problem, so i suspected that it was coming from Auth.

when i turned  it off (not use loginRedirect), the repeated URL after
login was gone.

so i thought there was really an issue with cake's loginRedirect.  i
googled some more and i found this thread.
http://groups.google.com/group/cake-php/browse_thread/thread/1e4b2be656586591/4c672237428cc978?lnk=gst&q=loginRedirect#4c672237428cc978
i was just so relieved to find out that others were experiencing the
same thing -- because it was beyond my skills to trace where that
weird URL was coming from.

anyway, thanks again for your help.  your clarification on
allow(..., ...) and allowedActions = array(..., ..., ... ) also
explained the erratic behavior of some of my unauthorized pages
because i used them interchangeably in app_controller,
users_controller and groups_controller, not understanding the
difference.

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