public function getD() { $Faculty = new \app\models\Faculty(); $faculty = $Faculty->getFaculty(); echo json_encode($faculty); }