I have a form:
echo $form->create('User', array('action' => $user['User']['slug']));
When I submit, it's posted to:
/users/user-slug
But if I submit it a second time (following a successful submit or a
validation error), it's posted to:
/users/user-slug/3
Where '3' is probably coming from one of the form fields:
echo $form->input('id', array('type' => 'hidden', 'value' =>
$user['User']['id']));
Why is Cake appending to my action?
--
View this message in context:
http://n2.nabble.com/form-helper-appending-unwanted-parameteres-to-action-tp1471915p1471915.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---