예제 #1
0
 /**
  * Save common data stored between requests
  * 
  * @author Krzysztof Kalkhoff
  *        
  */
 public static function saveCommonData()
 {
     // Save needed data
     $_SESSION[self::LAST_PAGE_SESSION_NAME] = Server::getAbsoluteURL();
 }
예제 #2
0
 /**
  * Create link using absolute path to site
  *
  * @author Krzysztof Kalkhoff
  *
  * @param string $href
  * @return string
  */
 public static function makeAbsoluteLink($href)
 {
     return Server::getAbsoluteURL() . BASEPATH . self::removeTrailingSlash($href);
 }