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