/** * Muestra el template de ayuda asociado al controlador * El nombre del template de ayuda está definido en el * nodo <help_file> del config.yml del controlador * Si no existiera, se muestra un template indicando esta * circunstancia * * @return array con el template a renderizar */ public function helpAction() { $template = $this->entity . '/' . $this->form->getHelpFile(); $file = "modules/" . $template; if (!is_file($file) or $this->form->getHelpFile() == '') { $template = "_help/noFound.html.twig"; } $values['title'] = $this->form->getTitle(); $values['idVideo'] = $this->form->getIdVideo(); $values['urlVideo'] = $this->form->getUrlVideo(); return array('template' => $template, 'values' => $values); }