Example #1
0
 protected function build(builder\Router $root)
 {
     if ($sPath = $this->readx('@path', false)) {
         $path = $root->getPath($sPath);
         $sResult = $path->asPath();
     } else {
         $sResult = $root->asPath();
     }
     return $sResult;
 }
Example #2
0
 protected function build(builder\Router $root)
 {
     $path = $root->getPath($this->readx('@path', false));
     /*
         if ($path == $this->getRoot()->getView()) {
     
           $this->launchException('Recursive call detected', get_defined_vars());
         }
     */
     return $root->callScript($root->getPathFile($path), $this->getWindow(), '\\sylma\\dom\\handler', false);
 }