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