public function uri_params() {
$values = [];
- if (empty($_SERVER['REQUEST_URI'])) $_SERVER['REQUEST_URI'] = join('/',count($GLOBALS['argv'])>0 ? array_slice($GLOBALS['argv'],1) : []);
+ if (empty($_SERVER['REQUEST_URI'])) $_SERVER['REQUEST_URI'] = join('/',( count($GLOBALS['argv'])>0 ) ? array_slice($GLOBALS['argv'],1) : []);
list ($path,$args) = explode('?',$_SERVER['REQUEST_URI']);
$this->uri = $path;
$this->uri_params = $args;
- #$path = preg_replace('/\?.*$/','',$_SERVER['REQUEST_URI']);
if (preg_match('/\.(\w+)$/',$path,$m)) {
$values[] = $m[1];