/**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $this->layout = '//layouts/column2';
     $model = new Pagina('search', array('order' => 'titulo', 'condition' => "tipo = 'serviço'"));
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Pagina'])) {
         $model->attributes = $_GET['Pagina'];
     }
     $this->render('admin', array('model' => $model));
 }
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Pagina('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Pagina'])) {
         $model->attributes = $_GET['Pagina'];
     }
     $this->render('admin', array('model' => $model));
 }