Try $form->create('User', array('url' => array('controller' =>
'users', 'action' => 'login))); . That did the trick for me.
- Arjen
On Nov 10, 2007 9:05 PM, DGPhoebus <[EMAIL PROTECTED]> wrote:
>
> Hey everyone... had a question about the $form->create() function.
> When using this function in the alpha release:
> <?php
> $form->create('User',array('method'=>'post','action'=>'login'));
> ?>
>
> with a ROUTE set up to point /login to /users/login would produce
> this:
>
> <form method="post" enctype="application/x-www-form-urlencoded"
> id="UserLoginForm" action="/users/login/">
>
> after upgrading to the pre-beta install that same $form->create(); as
> above produces this:
>
> <form method="post" enctype="application/x-www-form-urlencoded"
> id="UserLoginForm" action="/DOCUMENT_ROOT/pages/login">
>
> what it appears to be doing is using the whatever the current
> controller is and then attaching the 'login' action to it. Is this
> correct behavior? What do you do if you have a "Login" form that is
> persistent throughout the site that always needs to point to the Users/
> login controller action? I realize I could just hard code this login
> form and solve this problem. Thanks for the help.
>
> Daniel
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---