Re: [symfony-users] get object for edit the form

2011-06-15 Thread Erkhembayar Gantulga
HI *Imran*, If you using default CRUD, There is line (!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '') in _form.php partial. After submit you can get id in action very simple. $request->getParameter('id'); That's it. Erkhembayar Gantulga. -- If you want to report a

[symfony-users] get object for edit the form

2011-06-15 Thread Imran
Hi folks, I am using symfony 1.4 (Doctrine). I have been trying to find the form's object while editing the form. I have been using custom routing for form submission url. Please look at the following case: http://www.something/user/username/comment In the above URL, user is module name, usern