public function actionIndex() { $model = new Gs('search'); $model->unsetAttributes(); if (isset($_GET['Gs'])) { $model->setAttributes($_GET['Gs']); } $dataProvider = $model->search(); $this->render('//gs/index', array('dataProvider' => $dataProvider, 'model' => $model)); }