rendering views of other modules/controllers
Posted 22 October 2010 - 05:26 AM
As i understand, the only way is using renderFile && manual adding layout.
Or i can?
Posted 30 October 2013 - 08:36 AM
You can use the following function tooo
Yii::app()->runController('your-controller/your-action'); // In view file itself you can use.
Thanks & Regards,
Hit (+) button If my replies really helped you!
Posted 04 May 2014 - 02:39 PM
Basically, we can use:
<?php echo $this->renderPartial('//search/_form'); ?>
Where _form is a view from a different module search.
Actually -form is in the app.views.search dir because of the '//' in front.
GSTAR actually has it right