コード例 #1
0
 public function actionAdmin()
 {
     $model = new Jobs('search');
     $model->unsetAttributes();
     if (isset($_GET['Jobs'])) {
         $model->setAttributes($_GET['Jobs']);
     }
     $this->render('admin', array('model' => $model));
 }
コード例 #2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Jobs('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Jobs'])) {
         $model->attributes = $_GET['Jobs'];
     }
     $this->render('admin', array('model' => $model));
 }
コード例 #3
0
 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     parent::actionIndex();
     $this->lookupdata();
     $model = new Jobs('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Jobs'])) {
         $model->attributes = $_GET['Jobs'];
     }
     if (isset($_GET['pageSize'])) {
         Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']);
         unset($_GET['pageSize']);
         // would interfere with pager and repetitive page size change
     }
     $this->render('index', array('model' => $model, 'orgstructure' => $this->orgstructure, 'position' => $this->position));
 }