/** * index of the home page * @return void */ public function indexAction() { $categoriesService = new \applications\modules\instances\services\categoriesService(); $this->page->addVar('categories', $categoriesService->getAllWithInstancesCount()); }