This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyFormFieldset extends Fieldset implements InputFilterProviderInterface | |
{ | |
public function __construct() //I am using DoctrineModule 2.. I remove it configuration. | |
{ | |
/* ... */ | |
$this->add(array( | |
'name' => 'date', | |
'type' => 'Zend\Form\Element\Text', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function createAction() | |
{ | |
$objectManager = $this->getServiceLocator()->get('Doctrine\ORM\EntityManager'); | |
$form = new \Admin\Form\RegisterForm($objectManager); | |
$register = new \Admin\Entity\Register(); | |
$form->bind($register); | |
$viewmodel = new ViewModel(); | |
$viewmodel->setTerminal($this->getRequest()->isXmlHttpRequest()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Admin\Entity; | |
use DateTime; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="concursos") | |
*/ |