ZEND, rendering different view with data

后端 未结 2 1729
说谎
说谎 2021-01-05 10:29

I have a problem as I want to render view from different controller and pass there datas. Do You know how to do it?

I was trying:

$this->renderScr         


        
2条回答
  •  -上瘾入骨i
    2021-01-05 10:53

    Do you mean you just want to render a different controller action's view script?

    $this->view->entries = $result;
    $this->_helper->viewRenderer('index/index', null, true);
    

    Check out the manual page for the ViewRenderer helper.

提交回复
热议问题