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(); }
public function test() { $course = new CourseModel(); $school = new SchoolModel(); $courselist = $course->select(); $schoollist = $school->select(); $this->assign('schoollist', $schoollist); $this->assign('courselist', $courselist); $this->display(); }