Monday, August 30, 2010

Login Form in default.ctp Layout

Hi,

i created a default layout with a login form in the head area that
switches to a different view if the user is logged in.
When I try to login through this login form and submit it I receive a
404.
I worked with the form helpers and to nail down the problem, I copied
the working code from the login.ctp, but it didn't work either.
Unfortunately i have no errors in the log files or elsewhere. Debug is
set to 2.
Weired thing is that, I can use the top login form when the /users/
login view or the users/register view is shown.

So after a little testing it seems like the problem only occurs on the
main page and not on the other pages/controllers. Is there anything I
need to put into the pages controller for this to work? I tried to put
in:

var $components = array(
'Security',
'Session',
'RequestHandler',
'Auth'
);

but nothing seems to change anything. Does anyone of you guys have an
idea.

thanks,
Christian

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: