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