[英]Zend Framework: Is there a way to get the path to the view template directory?
I'm just trying to find a way to get the path to the directory of my view templates using the Zend Framework. 我只是想找到一种方法来使用Zend Framework获取我的视图模板目录的路径。 Is there a way to do that?
有没有办法做到这一点?
您可以从可以编写的视图中使用getScriptPaths()函数:
print_r($this->getScriptPaths());
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.