/** * Manages all models. */ public function actionIndex() { $model = new Spec('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Spec'])) { $model->attributes = $_GET['Spec']; } $this->render('index', array('model' => $model, 'count' => $model->count())); }