Skip to content

Instantly share code, notes, and snippets.

View bakura10's full-sized avatar

Michaël Gallego bakura10

View GitHub Profile
// account status
$form->add(array(
'name' => 'enabled',
'type' => 'Zend\Form\Element\Select',
'options' => array(
'value_options' => array(
array(
'value' => 99,
'label' => 'French',
@bakura10
bakura10 / 1-controller.php
Created November 12, 2012 16:56 — forked from rufinus/1-controller.php
currently
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