/** * Invokes the parent configure and forces the this view object not to decorate * * @return false */ public function configure() { parent::configure(); $this->setDecorator(false); $this->setDirectory($this->configuration->getTemplateDir($this->moduleName, $this->getTemplate())); if ($this->moduleName == 'global') { $this->setDirectory($this->configuration->getDecoratorDir($this->getTemplate())); } }
/** * Invokes the parent configure and forces the this view object not to decorate. */ public function configure() { parent::configure(); // template name $template = sfConfig::get('sf_template'); $templateDir = sfConfig::get('sf_template_dir') . '/' . $template; $this->setDecorator(false); $this->setDirectory($templateDir . '/' . $this->moduleName . '/' . $this->getTemplate()); if ('global' == $this->moduleName) { $this->setDirectory($templateDir . '/global/' . $this->getTemplate()); } }