Example #1
0
 /**
  * 用户信息读取
  * @return [type] [description]
  */
 public function actionUserInfo()
 {
     $id = intval($this->getParam('id', '', "ID是必须存在的"));
     $info = User::findIdentity($id);
     if (!empty($info)) {
         return print_r($info->attributes);
     } else {
         $this->out(Self::EXP_EMPTY, Self::EXP_EMPTY_TXT, '', 'PAGE');
     }
 }