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