i am new to symfony2. I am designing a dynamic form builder. I have fetching a templete which shows the dynamic form and generates the code for that form in a text area for fetching the template i am using the following code:
public function newAction(Request $request)
{
return $this->render('AcmeTaskBundle:Default:index.html.twig');
}
when click on submit, i want to fetch the code of that innerHTML in the text area ( i want to fetch the value of the random text area in the new templete). I am using the following code for fetching the new template what should I do to get that dynamic value.
public function subAction(Request $request)
{
return $this->render('AcmeTaskBundle:Default:sub.html.php',array(''));
}
The correct way to do this is to access
in the controller. You might also consider using the Form Component for that purpose.