protected function beforeRender() { parent::beforeRender(); $this->template->parameters = $this->context->parameters; $this->template->acl = $this->acl; $this->template->addFilter('langName', function ($locale) { return Intl::getLocaleBundle()->getLocaleName($locale); }); $this->template->projects = $this->projectFacade->findAll(); }