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

2011-06-17 Thread Gábor Fási
Instead of hard-coding, use $form->getName(): http://trac.symfony-project.org/browser/branches/1.4/lib/form/sfForm.class.php#L341 On Thu, Jun 16, 2011 at 19:03, Mohd Imran wrote: > Hey Gantulga, > > Thanks for reply. > > I don't want to pass the id value in URL. > > I have a form which contains t

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

2011-06-17 Thread Mohd Imran
Hey Gantulga, Thanks for reply. I don't want to pass the id value in URL. I have a form which contains the id value in hidden field. I can get the post id values like this way: $params = $request->getParameter('form_name'); $id = $params['id']; But i am not comfortable with hard-coding the f