This question already has an answer here:
Is it possible to have two templates in a webapp ?
</div>
This question already has an answer here:
Is it possible to have two templates in a webapp ?
</div>
You can use renderPartial()
instead of render in order to render multiple views.
$this->renderPartial('VIEW NAME',array('KEY'=>'VALUE'));
You can do this many times!
Yii also has other useful features in order to render multiple views, such as decorators and clips. I suggest you to take a look at the decorators
and clips
in Yii
. These features are really cool!