ProfileAction::appprofile PHP Method

appprofile() public method

获取指定应用的信息
public appprofile ( )
    public function appprofile()
    {
        $user_info = model('User')->getUserInfo($this->uid);
        if (empty($user_info)) {
            $this->error(L('PUBLIC_USER_NOEXIST'));
        }
        $d['widgetName'] = ucfirst(t($_GET['appname'])) . 'Profile';
        foreach ($_GET as $k => $v) {
            $d['widgetAttr'][$k] = t($v);
        }
        $d['widgetAttr']['widget_appname'] = t($_GET['appname']);
        $this->assign($d);
        $this->_assignUserInfo(array($this->uid));
        $this->mid != $this->uid && $this->_assignFollowState($this->uid);
        $this->display();
    }