- getMessage();
- echo $strMessage;
- echo "\n\n";
+
+ getMessage();
+ echo $strMessage;
+ echo "\n\n";
- $strFile = $x->getFile();
- $intLine = $x->getLine();
-
- echo "#-1 {$strFile}({$intLine}): {$strMessage}\n";
- echo $x->getTraceAsString();
+ $strFile = $x->getFile();
+ $intLine = $x->getLine();
+
+ echo "#-1 {$strFile}({$intLine}): {$strMessage}\n";
+ echo $x->getTraceAsString();
- ob_end_flush();
- exit;
- }
- ?>
-
+ ob_end_flush();
+ exit;
+ }
+ ?>
+
-
diff --git a/lib/Request.php b/lib/Request.php
index 0027568..b794c2c 100644
--- a/lib/Request.php
+++ b/lib/Request.php
@@ -98,6 +98,13 @@
return Request::$varPathParts;
}
+ public static function getPath()
+ {
+ $strPath = "/";
+ $strPath .= implode("/", Request::getPathParts());
+ return $strPath;
+ }
+
// Safely returns a request argument by its index or null if it doesn't exist (without error)
public static function getArg($intIndex)
{