コード例 #1
0
 protected static function getRequest()
 {
     if (self::$_request === null) {
         require_once 'Zend/Controller/Front.php';
         self::$_request = Zend_Controller_Front::getInstance()->getRequest();
     }
     return self::$_request;
 }
コード例 #2
0
 public static function getUserUrl()
 {
     $user = Zend_Auth::getInstance()->getIdentity();
     return is_null($user) ? null : Revoleers_Util_HttpPath::getServerUrl() . '/profile/profile/view-public/' . $user->profile_id;
 }