public function createAction() { if ($this->_request->isPost()) { $titre = $_POST['titre']; $description = $_POST['description']; $debut = $_POST['debut']; $debutHeure = $_POST['debutHeure']; $fin = $_POST['debut']; $finHeure = $_POST['finHeure']; $debut = $this->convertDate($debut, $debutHeure); $fin = $this->convertDate($fin, $finHeure); $event = new Application_Model_Event(); $save = $event->insertEvent($titre, $description, $debut, $fin); $this->_redirect($this->view->url(array('controller' => 'event', 'action' => 'liste'), null, true)); // sign up } }
public function __construct(array $options = null) { parent::__construct($options); }
public function __construct(array $options = null) { $this->_schoolCategory = new Application_Model_SchoolCategory(); parent::__construct($options); }