/** * 用户信息 */ public function profile() { $uid = $this->_currenUserId(); $CountEvent = new CountEvent(); $user = D('User', 'Logic')->detail($uid); $this->assign("PostCount", $CountEvent->getPostCount(array("user_id" => $uid))); $this->assign('user', $user); $this->display(); }
/** * 首页基本信息 */ public function index() { $CountEvent = new CountEvent(); $this->assign("PostCount", $CountEvent->getPostCount()); $this->assign("UserCount", $CountEvent->getUserCount()); if (get_opinion("oem_info", false, 'original') != 'original') { $this->display("oem"); } else { $this->display(); } }