示例#1
0
 public function emailAction()
 {
     $_user = new User_Model_Db_User();
     try {
         if ($this->_session->uid != "0") {
             $pf = $_user->getById($this->_session->uid);
         } else {
             $pf = null;
         }
     } catch (Exception $e) {
         $pf = null;
     }
     $this->view->profile = $pf;
     $this->loadLayout('layout-simple');
     $this->render('email');
 }
示例#2
0
 public function indexAction()
 {
     $_user = new User_Model_Db_User();
     $_profile = new User_Model_Db_UserProfile();
     try {
         $user = $_user->getList(array('uname' => $this->_params['user']));
         if (isset($user[0]['uid'])) {
             $pf = $_profile->getById($user[0]['uid']);
             $this->view->user = $user[0];
         } else {
             throw new Exception('Page Not Found');
         }
         $pf['desc'] = Common_Util_Format::richEditFilter($pf['desc']);
     } catch (Exception $e) {
         throw new Exception('Page Not Found');
     }
     $this->view->profile = $pf;
     $this->loadLayout('layout-simple');
 }