How to pass options/params to formCollection fieldset in ZendFramework 2?
问题 I have a Form which contains a formCollection with a select element that I want to populate with values (from SQL) depending on a POST param. Passing this param from controller to form wasn't a problem but now I can't find a way to set/read that param in target_element of formCollection. Any ideas on how make that work? Here's my code: Controller class MyController extends AbstractActionController{ public function indexAction() { $form = $this->serviceLocator->get('FormElementManager')->get(