public function beforeRender() { parent::beforeRender(); $this->setActiveMenuItem('Eshop'); $this->setLayout('layoutEshop'); $this->template->eshopCategories = $this->categoryModel->findEshopCategories(); }