Tuesday, June 2, 2009

Re: Form still tries to find action => edit

On Mon, Jun 1, 2009 at 2:23 PM, Dave Maharaj :: WidePixels.com
<dave@widepixels.com> wrote:
> I have created 1 form which has
>
> <?php echo $form->create(array('type' => 'post',
>     'options' => array(
>         'model'=>'User',
>         'url' => array(
>         'controller' => 'users',
>         'action' => 'update'
>         )
>     )
> )); ?>
>
> But everytime I submit the form it comes back missing Edit view....? But I
> am asking for the update view not edit
>
> HTML rendered is
> <form action="/users/edit/3" method="post" id="UserEditForm"
> options<fieldset>
>    ..........
> </form>
>
> Why is it still looking for Edit?


Have you tryied only

echo $form->create('User', array('action'=> 'update')

?

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
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: