Symfony2 Forms – Accessing field data from views

To access the underlying data within the views, use the following;

$form->vars['data']->item_id

 

Leave a Reply