needlogin = true; $me = new User(); $me->loadMe(); $this->me = $me; $this->layout()->set("me", $me); if (!$me->can(["Fibu"])) { $this->redirect("Dashboard"); } } protected function indexAction() { $timerecordingholidays = TimerecordingHolidayModel::getAll(); $this->layout()->set("timerecordingholidays", $timerecordingholidays); $timerecordingemployees = TimerecordingEmployeeModel::getAll(); $this->layout()->set("timerecordingemployees", $timerecordingemployees); $this->layout()->setTemplate("TimerecordingCalendar/Index"); } }