View 1-controller.php
public function createAction() | |
{ | |
$service = $this->getService(); | |
$form = $service->getForm(); | |
$entity = $service->getEntity(); | |
$form->bind($entity); | |
if($this->request->isPost()) { | |
$mandator = $this->getEntityManager()->find('Admin\Entity\Mandator', $_POST['mandator_id']); //<--- should not be needed |
View Register.php
// account status | |
$form->add(array( | |
'name' => 'enabled', | |
'type' => 'Zend\Form\Element\Select', | |
'options' => array( | |
'value_options' => array( | |
array( | |
'value' => 99, | |
'label' => 'French', |