Why not just render the login form on the home page, but submit it to /users/login. If the login fails, then the normal login view handles the error rather than trying to do so in the home page. If login is successful then it redirects to the default login location.

Just a thought ...

Regards,
Langdon


Dear bakers,

the start page of my app is supposed to be a login.
my user login view still resides in /views/user/login.thtml.
this works fine, but leads to the ugly url /users/login.

but i want the login form in home.thtml which resides in /pages.
here i have no access to the $error variable...

thanks for yr help !

jyrgen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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