예제 #1
0
 public function actionAdv()
 {
     // renders the view file 'protected/views/site/index.php'
     // using the default layout 'protected/views/layouts/main.php'
     $model = new Notices('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Notices'])) {
         $model->attributes = $_GET['Notices'];
     }
     $this->render('adv', array('model' => $model));
 }
예제 #2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Notices('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Notices'])) {
         $model->attributes = $_GET['Notices'];
     }
     $this->render('admin', array('model' => $model));
 }