Example #1
0
 /**
  * Constructor : defines the current URL and gets the routes
  */
 public function __construct()
 {
     parent::guessFromCurrent();
     $server_uri = $_SERVER['REQUEST_URI'];
     $server_query = $_SERVER['QUERY_STRING'];
     $full_query_string = str_replace(array('?', $server_query), '', trim($server_uri, '/'));
     parse_str($full_query_string, $full_query);
     if (!empty($full_query)) {
         $this->setArguments(array_merge($this->getArguments(), $full_query));
     }
 }