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