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