public function GET__0() { $repo = new TimetableRepository(); $template = $this->includeTemplate('dashboard/timetable_list'); $template->timetables = $repo->listAll(); $template->render(); }
public function GET_timetables_0() { $repo = new TimetableRepository(); Json::OK($repo->listAll()); }