Ejemplo n.º 1
0
 public function actionAdmin()
 {
     $model = new Community('search');
     $model->unsetAttributes();
     if (isset($_GET['Community'])) {
         $model->setAttributes($_GET['Community']);
     }
     $this->render('admin', array('model' => $model));
 }