/** * 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)); }
/** * 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)); }