| // +------------------------------------------------+ namespace app\mobile\controller; use app\common\model\MemberInfo; class Index extends _Init { public function _initialize() { parent::_initialize(); $this->nav = 1; } public function index() { if (UID || $this->shareUser) { if ($this->shareUser) { $this->info = $this->shareUser; } else { $this->info = MemberInfo::get(UID); } return $this->fetch('user_' . $this->info['index_tpl']); } else { return $this->fetch(); } } public function info() { if (UID == $this->shareUser['uid']) { $this->info = MemberInfo::get(UID); } else { $this->info = $this->shareUser; } return $this->fetch(); } }