route)) { // by default route is the same as view in which it was used $this->route = \Yii::$app->controller->id . "/" . \Yii::$app->controller->action->id; } } public function run() { return $this->render( 'search_view', [ 'route' => $this->route, 'paramForSearch' => $this->paramForSearch, ] ); } }