Example #1
0
 public function actionAdmin()
 {
     IsAuth::Admin();
     $model = new Proposal('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Proposal'])) {
         $model->attributes = $_GET['Proposal'];
     }
     $this->render('admin', array('model' => $model));
 }