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