Exemplo n.º 1
0
 public function changerEtatRecette()
 {
     $etat = $this->input->post('etat');
     if (empty($etat)) {
         echo 'erreur';
     } else {
         if ($etat == 'public') {
             echo 'erreur';
         } else {
             parent::changerEtatRecette();
         }
     }
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     if (!$this->_isAdmin()) {
         $this->redirectTo('Membre/index');
     }
 }