I'm just trying to find a way to get the path to the directory of my view templates using the Zend Framework. Is there a way to do that?
views:
464answers:
1
+4
A:
You can use getScriptPaths() function so from a view you could write:
print_r($this->getScriptPaths());
Brian Fisher
2009-01-16 00:26:39
Thank you!I found out that $this->getScriptPaths() works in the template, but in the controller, you need to do $this->view->getScriptPaths()
Andrew
2009-01-26 23:37:28