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