If you are looking to fetch form posted values in symfony2. Please follow the below code and make adjustment accordingly:
Open your controller function where you would like to fetch the values::
$VendorForm->handleRequest($request);
// $VendorForm is your form name initialize in twing file
if ($VendorForm->isSubmitted() && $VendorForm->isValid())
{
$data = $VendorForm->getData();
// $data have all the posted value in the form of array
print_r($data);
}
0 Comment(s)