/** * Manages all models. */ public function actionAdmin() { $model = new Whitelist('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['pageSize'])) { Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']); unset($_GET['pageSize']); // would interfere with pager and // repetitive page size change } if (isset($_GET['Whitelist'])) { $model->attributes = $_GET['Whitelist']; } $this->render('admin', array('model' => $model)); }