/** * (non-phpDoc) * * @see Nette\Application\Control#render() */ public function render() { if ($this->tab == '') { $this->handleRecentEvents(); } $this->template->active = $this->tab; $this->template->events = $this->events->limit(6); $this->template->subjects = $this->subjects->limit(6); $this->template->setFile(__DIR__ . "/HomepageTabs.latte"); // $this->template->setTranslator($this->context->translator); $texy = new Texy(); $this->template->registerHelper('texy', callback($texy, 'process')); $helpers = $this->context->myTemplateHelpers; $this->template->registerHelperLoader(array($helpers, 'loader')); $this->template->render(); }