public function add()
 {
     $teacher = new TeacherModel();
     $school = new SchoolModel();
     $teacherlist = $teacher->select();
     $schoollist = $school->select();
     $this->assign('teacherlist', $teacherlist);
     $this->assign('schoollist', $schoollist);
     $this->display();
 }
 public function addcourse()
 {
     $username = Cookie::get('username');
     $usertype = Cookie::get('usertype');
     $userid = Cookie::get('userid');
     $school = new SchoolModel();
     $teacher = new TeacherModel();
     $schoollist = $school->select();
     $teacherlist = $teacher->select();
     $this->assign('schoollist', $schoollist);
     $this->assign('teacherlist', $teacherlist);
     $this->assign('username', $username);
     $this->assign('usertype', $usertype);
     $this->assign('userid', $userid);
     $this->display();
 }