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; }
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); }