示例#1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new UserInfo('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['UserInfo'])) {
         $model->attributes = $_GET['UserInfo'];
     }
     $this->render('admin', array('model' => $model));
 }
示例#2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new UserInfo('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['UserInfo'])) {
         $model->attributes = $_GET['UserInfo'];
     }
     $onlineNum = Yii::app()->getSession()->getOnlineNum();
     $this->render('admin', array('model' => $model, 'onlineNum' => $onlineNum));
 }