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