private static function getURLList() { global $_SERVER; $dados = @parse_url($_SERVER['REQUEST_URI']); $url = ""; $query = ""; if (!empty($dados['path'])) { self::$url = explode("/", trim($dados['path'], '/')); } if (!empty($dados['query'])) { @parse_str($dados['query'], self::$query); } }
public function __construct() { if (self::$_url === null) { self::$_url = \Phpfox_Url::instance(); } }