public function index() { if (!isChefFiliere()) { return show_404(); } $this->accueilChefFiliere(); }
public function index() { if (isEtudiant()) { $cne = $this->etudiant_model->getEtudiant(['etudiantId' => currentSession()['id']])->cne; return redirect($cne); } else { if (isEntreprise()) { return redirect('entreprise'); } else { if (isSuperviseur()) { return redirect('superviseur'); } else { if (isChefFiliere()) { return redirect('tuteur/index'); } else { if (isTuteur()) { return redirect('tuteur/profile/' . currentId()); } else { if (isTuteurExt()) { return redirect('tuteur/profile/' . currentId()); } } } } } } $data['title'] = 'Plateforme de stages - ENSAT'; $data['NOSIDEBAR'] = true; $this->render('home', $data); }
public function refusePostulat($Sid, $Eid) { $criteria = array('sujetId' => $Sid, 'etudiantId' => $Eid); $data = array('sujetId' => $Sid, 'etudiantId' => $Eid, 'etat' => 'R'); $this->sujet_model->updatePostulat($criteria, $data); if (isChefFiliere()) { return redirect('tuteur/finaliser'); } return redirect('sujet/index/' . $Sid); }