【发布时间】:2014-07-14 08:33:11
【问题描述】:
我在从其他模块渲染视图时遇到问题。
例如:我在 news.phtml 页面上,我需要添加“添加评论”页面。添加 cmets 的视图在 add.phtml 文件中的其他模块 'Comments' 中。
我不知道如何在新闻页面上包含此文件。 我尝试过这样的事情:
echo $this->render('module/Comments/view/comments/index/add.phtml');
echo $this->render('../../Comments/view/comments/index/add.phtml');
但没有任何效果。 我怎么能这样做?
【问题讨论】:
标签: php zend-framework2 views