as soon as you post the data, you dont need the /id anymore it is "hidden" in the form and gets passed on each submit
if you "need" it in your url for some reason, dont use "action"=>"edit", but "url"=>"/".$this->params['url]['url'] on creating the form now it will stick to the url On 8 Aug., 01:13, leafchild <[email protected]> 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 [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 -~----------~----~----~----~------~----~------~--~---
