Exemple #1
0
 /**
  * @before _secure, _school
  */
 public function edit($exam_id)
 {
     $exam = Exam::first(array("id = ?" => $exam_id));
     if (!$exam || $exam->organization_id != $this->organization->id) {
         self::redirect("/school");
     }
     $this->setSEO(array("title" => "Edit Exam | School"));
     $view = $this->getActionView();
     if (RequestMethods::post("action") == "editExam") {
         // process editing
     }
 }