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