public function actionIndex() { $model = new BlackListedMobile('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['BlackListedMobile'])) { $model->attributes = $_GET['BlackListedMobile']; } $this->render('list', array('model' => $model)); }