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