Display Views of different Controller in same Page

Hi there,

I would like to have the content of different Controller Actions on the same page.

In my case the site/index - Action is called. There I’d like to call two different Controller’s action and display the content.

public function actionIndex()



$this->forward('controller1/action1',false) ;

$this->forward('controller2/action12',false) ;





This doesn’t work and mess up my layout. Is there any way, to add Information to the view.$content?

Any suggestions how to solve my problem?



What’s you are trying to do is very strange. Can you describe your problem (why do you need it) so that we can find a good solution?

I have two seperate pages A and B. On my startpage (index) I would like to display both on the same page.

did you try renderPartial ?