Support configuring of variables for advanced routes

develop
Sven Slootweg 12 years ago
parent c66efa4bae
commit 2d634b14d7

@ -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'];

Loading…
Cancel
Save