How to make same thing in Yii? Code in Laravel:
web.php:
Route::get('blog', function () {
return view('blog.index');
});
All I need is to return a view by url. Where and how can I do this? I didn't find good docs for this.
You need to do this in your controller
public function actionIndex(){
return $this->render('view_name');
}