public function actionporaprobar() { $this->inserta(); $model = new Noticias('searchporparobar'); if (isset($_GET['Noticias'])) { $model->attributes = $_GET['Noticias']; } $proveedor = $model->searchporaprobar(); $this->render('admin', array('model' => $model, 'proveedor' => $proveedor, 'titulo' => 'Avisos aprobados')); }