/** * Lists all models. */ public function actionIndex() { $this->tituloManual = "Lista de entregadores"; $model = new Entregador('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Entregador'])) { $model->attributes = $_GET['Entregador']; } $this->render('index', array('model' => $model)); }