Пример #1
0
 /**
  * 用户信息
  */
 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();
 }
Пример #2
0
 /**
  * 首页基本信息
  */
 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();
     }
 }