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