diff --git a/components/component.router.php b/components/component.router.php index d1983d6..818533d 100644 --- a/components/component.router.php +++ b/components/component.router.php @@ -17,6 +17,7 @@ class CPHPRouter extends CPHPBaseClass { public $routes = array(); public $parameters = array(); + public $sVariables = array(); public $custom_query = ""; public $allow_slash = false; public $ignore_query = false; @@ -95,6 +96,15 @@ class CPHPRouter extends CPHPBaseClass } } + foreach($route_destination as $key => $value) + { + if(strlen($key) > 1 && substr($key, 0, 1) == "_") + { + $key = substr($key, 1); + $this->sVariables[$key] = $value; + } + } + if($authenticated === true) { $destination = $route_destination['target'];