Zend框架布局路径不正确

时间:2014-12-14 14:00:10

标签: php zend-framework

嗨我的zend布局有问题...如果我在索引上:

www.mysite.com/

没问题,因为布局正确加载了像assets/images/etc

这样的文件

但如果我转到:www.mysite.com/modules/controller/indexwww.mysite.com/controller/index,布局会尝试在modules/controller/assetscontroller/assets

中加载文件

我不知道问题是在 .htaccess 文件中还是 Bootstrap.php application.ini < / p>

我该如何解决?

1 个答案:

答案 0 :(得分:0)

这不是ZF / PHP问题。只需确保在布局文件中使用绝对路径(即以/开头的路径),然后就不会出现此问题。