2010-12-15 48 views

回答

3
$html = $this->view->render('view.phtml'); 

我想你应该也可以通过播放响应对象来获得这个。

像:

$this->getResponse()->getBody(); 
2

动作视图助手可以是有用的,从the docs

<div id="sidebar right"> 
    <div class="item"> 
    <?php echo $this->action('list', 
          'comment', 
          null, 
          array('count' => 10)); ?> 
    </div> 
</div> 

当然,你可以用存储var或在视图脚本之外执行。

相关问题