public function actionIndex() { $model = new ErrorLog('search'); $model->unsetAttributes(); if (isset($_GET['ErrorLog'])) { $model->attributes = $_GET['ErrorLog']; } $this->render('index', compact('model')); }