symfony - Fetcing dynamically added fields in forms - Symfony2 -
i have data added in hidden input fields inside form.
now since i'm using symfony2 forms fields don't submitted. i.e. $form->getdata()
not data fields.
how data dynamically added (hidden) input fields well?
fetch post values in context of form type:
$postdata = $request->request->get('form_name'); $name_value = $postdata['title'];
fetch post values not in context of form type (maybe need):
$data = $request->request->all(); $name = $data['input_name'];
Comments
Post a Comment