I may have clicked reply to author instead of reply, so I'm trying to
submit again...
On Jul 20, 1:48 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> you're crazy ;)
:P
> Do you have
> $form->input('id')
> in the form ? i'm pretty sure all baked views have it.
Yes, all my form items are created in the form helper because I want
to use the security component.
> > <?php echo $form->create('Users', '/login'); ?>
>
> <?php echo $form->create('Users', array('action' => 'login')); ?>
That was a freehand typo from me. What you have specified ends up
being setting action="/login". array('action' => '/login') returns
action="/users/login".
I'm really baffled as to why /add is the default when it's only one of
a likely many action in a controller. Having a function return the url
sans the controller name seems dubious at best since the current page
seems like a more logical and appropriate solution.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---