Yes I edited the array and it looks similar to the one you have below and it works.
Thanks for your time and help. Dave -----Original Message----- From: Marcelo Andrade [mailto:[email protected]] Sent: June-02-09 11:22 AM To: [email protected] Subject: Re: Form still tries to find action => edit On Mon, Jun 1, 2009 at 2:23 PM, Dave Maharaj :: WidePixels.com <[email protected]> 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 [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 -~----------~----~----~----~------~----~------~--~---
