views:

464

answers:

1

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?

+4  A: 

You can use getScriptPaths() function so from a view you could write:

print_r($this->getScriptPaths());
Brian Fisher
Thank you!I found out that $this->getScriptPaths() works in the template, but in the controller, you need to do $this->view->getScriptPaths()
Andrew