I was wondering can I change default view folder for a controller in Yii2?
If we can change layout just by using public $layout, how we can do it with view?
Class HomeController extends \yii\web\Controller
{
public $layout = 'mylayout';
public $view = 'newview';
public function actionIndex()
{
return $this->render('index');
}
}