So far i have made Yii2 applications always rendering one view per action in some Controller.
But now i need to render 2 view files, the index and the view in the same screen.
So far i have made Yii2 applications always rendering one view per action in some Controller.
But now i need to render 2 view files, the index and the view in the same screen.
inside view You can use:
echo $this->render(‘viewname’,[params])
it works