2010-12-15 9 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> 

もちろん、echoを置き換えてvarを使用するか、ビュースクリプトの外側で実行します。

関連する問題