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