Exemple #1
0
 /**
  * @param string $url
  *
  * @return string
  */
 public function clean_url($uri)
 {
     $uri = parent::clean_url($uri);
     $pp = CMS::$print_prefix;
     if (is_string($pp)) {
         if ($m = Core_Regexps::match_with_results("{^/{$pp}/(.+)}", $uri)) {
             $uri = '/' . $m[1];
             CMS::$print_version = true;
         }
     }
     return $uri;
 }
Exemple #2
0
 /**
  * @param string                           $name
  * @param WebKit_Controller_AbstractMapper $mapper
  *
  * @return mixed
  */
 public function map($name, WebKit_Controller_AbstractMapper $mapper)
 {
     $this->map[$name] = $mapper->with_path($this->add_path($mapper['path']));
     return $this;
 }