On Jun 17, 5:30 pm, Marcelo F Andrade <[email protected]> wrote: > On Wed, Jun 16, 2010 at 5:53 PM, [email protected] > > <[email protected]> wrote: > > > The index.ctp has this line : > > <?php echo $form- > >>create('CautareProduseVechi',array('action'=>'cautareProduseVechi'));? > > > This generated html code is : > > <form id="CautareProduseVechiCautareProduseVechiForm" method="post" > > action="/new_admin/cautare_produse_vechis/cautareProduseVechi"> > > > The old 1.2.0 was generating : > > <form id="CautareProduseVechiAddForm" method="post" action="/new_admin/ > > intretinere/cautareProduseVechi"> > > A tip: don't bother with that. Let Cake abstract this for you. > > If you really really want, you can set attribs for your form. > <?php echo > $form->create('CautareProduseVechi',array('action'=>'cautareProduseVechi', > 'id' => 'CautareProduseVechiAddForm'));
I am not trying to set the form attributes . I am seeking a solution for fixing the broken url that gets loaded at form submit. In cakephp 1.2.0 the correct url was : action="/new_admin/ cautare_produse_vechis/cautareProduseVechi" In cakephp 1.2.7 the broken link is : action="/new_admin/ intretinere/cautareProduseVechi" The current page is "intretinere/index" , so the form url should change only the action , not try to use a wrong unexisting controller. So let me rephrase the question : how can I override the controller is used in the form's url ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
