Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是想找到一种方法来使用 Zend 框架获取我的视图模板目录的路径。有没有办法做到这一点?
您可以使用 getScriptPaths() 函数,因此从您可以编写的视图中:
print_r($this->getScriptPaths());