【发布时间】:2011-09-04 05:16:45
【问题描述】:
我在 /var/www/student/ 目录中的 ubuntu 上创建了一个 zend 项目。
现在我在这个位置有 head.phtml 文件:
/student/application/views/scripts/index/head.phtml
当我尝试在
中包含 head.phtml 文件时/student/application/modules/test/views/scripts/all/index.phtml
像这样:
echo $this->partial('index/head.phtml');
它给了我以下错误:
Message: script 'index/head.phtml' not found in path (/var/www/student/application/modules/notification/views/scripts/)
包含文件对我来说始终是一项艰巨的工作。如何解决这个问题。我必须将此文件包含在许多模块中,那么我不应该猜测路径的永久解决方案是什么
谢谢
【问题讨论】:
-
试试
echo $this->partial('all/head.phtml');
标签: php zend-framework ubuntu include-path