/** * Registruje helper pro zobrazování obrázků * * @param string|NULL $class * * @return Nette\Templating\FileTemplate */ public function createTemplate($class = NULL) { $tpl = parent::createTemplate($class); $tpl->registerHelper('checkImage', callback($this, 'checkImage')); return $tpl; }