作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试从另一个模块栏访问 foo 中的部分 View 。简化的文件结构:
application/
modules/
foo/
index.phtml
bar/
partial.phtml
<?php echo $this->partialLoop('../bar/partial.phtml', $this->paginator);
echo $this->paginator; ?>
Requested scripts may not include parent directory traversal ("../", "..\" notation)
最佳答案
您需要传递模块参数:
<?php echo $this->partialLoop('partial.phtml', 'bar', $this->paginator); ?>
关于zend-framework - 如何在 Zend 中使用来自不同模块的局部 View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5600147/
我是一名优秀的程序员,十分优秀!