コード例 #1
0
 public function _initialize()
 {
     parent::_initialize();
     $this->mInviteModel = D('Ucenter/Invite');
     $this->mInviteTypeModel = D('Ucenter/InviteType');
     $this->mInviteBuyLogModel = D('Ucenter/InviteBuyLog');
     $this->mInviteUserInfoModel = D('Ucenter/InviteUserInfo');
 }
コード例 #2
0
 public function _initialize()
 {
     parent::_initialize();
     $uid = isset($_GET['uid']) ? op_t($_GET['uid']) : is_login();
     //调用API获取基本信息
     $this->userInfo($uid);
     $this->_fans_and_following($uid);
     $this->_tab_menu();
 }
コード例 #3
0
 public function _initialize()
 {
     parent::_initialize();
     if (!is_login()) {
         $this->error('请登陆后再访问本页面。');
     }
     $this->setTitle('编辑资料');
     $this->_assignSelf();
     $this->_haveOtherRole();
 }
コード例 #4
0
 public function _initialize()
 {
     parent::_initialize();
     if (!is_login()) {
         $this->error(L('_ERROR_FIRST_LOGIN_'));
     }
     $this->setTitle(L('_DATA_EDIT_'));
     $this->_assignSelf();
     $this->_haveOtherRole();
 }
コード例 #5
0
 public function _initialize()
 {
     parent::_initialize();
     $this->mTalkModel = D('Talk');
 }
コード例 #6
0
 public function _initialize()
 {
     parent::_initialize();
     $this->mTalkModel = M('Talk');
     $this->setTitle(L(''));
 }
コード例 #7
0
 public function _initialize()
 {
     parent::_initialize();
 }