Skip to content

Instantly share code, notes, and snippets.

Avatar

Michaël Gallego bakura10

  • Sapporo, Japan
View GitHub Profile
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',
You can’t perform that action at this time.