/** * @param TemplateLocatorInterface $locator * @param ContainerInterface $container * @param TemplateNameParserInterface $parser * @param Zend_View_Interface $zendView */ public function __construct(FileLocatorInterface $locator, ContainerInterface $container, TemplateNameParserInterface $parser, $zendView) { $this->locator = $locator; $this->container = $container; $this->parser = $parser; $this->view = $zendView; // Zend View is not able to handle absolute paths except with this little trick $this->view->setScriptPath(''); }
public function setModuleScriptPath($module = 'default') { $scriptPath = sprintf('%s/modules/%s/views/scripts', APPLICATION_PATH, $module); return $this->view->setScriptPath($scriptPath); }