ZEND, rendering different view with data

后端 未结 2 1747
说谎
说谎 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条回答
  •  时光取名叫无心
    2021-01-05 10:47

    Render view with action's output data.

    in view page you wish to display data write this simple code.

    echo $this->action('list','users','main');
    

    list is my action name

    users is my controller name

    main is my module name (if module using in your project).

提交回复
热议问题