/** * Lists all models. */ public function actionIndex() { $this->layout = '//layouts/groupProductIndex'; $model = new GroupProduct('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['GroupProduct'])) { $model->attributes = $_GET['GroupProduct']; } $this->render('index', array('model' => $model, 'dataprovider' => $model->getIndexData())); }