Beispiel #1
0
 private function get_departments()
 {
     require_once 'models/department_model.php';
     $dept = new department_model();
     $alldepts = $dept->getalldepts();
     return $alldepts;
 }
Beispiel #2
0
 public function departments()
 {
     require 'models/department_model.php';
     $dept = new department_model();
     $alldepts = $dept->getalldepts();
     include 'views/departments.php';
 }