public function actionManage() { $model = new Sidebar('search'); $model->unsetAttributes(); if (isset($_GET['Sidebar'])) { $model->attributes = $_GET['Sidebar']; } $this->render('manage', ['model' => $model]); }