Exemplo n.º 1
0
 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
     }
 }
Exemplo n.º 2
0
 public function __construct(array $options = null)
 {
     parent::__construct($options);
 }
Exemplo n.º 3
0
 public function __construct(array $options = null)
 {
     $this->_schoolCategory = new Application_Model_SchoolCategory();
     parent::__construct($options);
 }