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() { $this->layout()->setTemplate("TimerecordingReport/Index"); $timerecordingCategoriess = TimerecordingCategoryModel::getAll(); $this->layout()->set("timerecordingCategoriess", $timerecordingCategoriess); $timerecordings = TimerecordingModel::getAll(); $this->layout()->set("timerecordings", $timerecordings); } protected function addAction() { } protected function editAction() { } protected function saveAction() { } protected function deleteAction() { } }