/** * Index action */ public function actionIndex() { $model = new UserCustomField('search'); $model->unsetAttributes(); if (isset($_GET['UserCustomField'])) { $model->attributes = $_GET['UserCustomField']; } $this->render('index', array('model' => $model)); }