as i said, i would go with JUST "url"=>"/".$this->params['url]['url']
in this case there is no need to use "action" or the manually built
url like james suggested

be aware of the "/" in front of it though (otherwise the url is not
built correctly)


On 9 Aug., 02:06, JamesF <usaexportexpe...@gmail.com> wrote:
> make sure you $form->create is submitting to the id as a parameter as
> well
>
> echo $form->create('FormName', array('url'=>array
> ('controller'=>'myController', 'action'=>'myAction', $id,
> 'admin'=>true)));
>
> On Aug 7, 7:13 pm, leafchild <leafchild.b...@gmail.com> wrote:
>
> > URL some page  .../id disappeared ?
>
> > I have site there are different form pages to organize products.
>
> > Some form page such as admin_edit page - URL:  ... admin/product/edit/
> > 1
> > After I submit URL still same either there is an error or not.
>
> > However, some form page lose id from URL after submit,
> > and showing index error.
>
> > for example, URL: ...admin/category/customer/edit/1 -> ...admin/
> > category/customer/edit
> > ==============================
> > if (!empty($this->data)) {
> >    // empty}
>
> > ==============================
> > I deleted all the code inside of if statement for taking care of
> > submitting data.
> > The one keep same URL doesn't show error but other does.
>
> > Not sure difference between these two has.
> > I don't know why? Does anyone know what's the issue?
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to