Skip to content

Instantly share code, notes, and snippets.

Michaël Gallego bakura10

Block or report user

Report or block bakura10

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

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