Ejemplo n.º 1
0
 /**
  * if no method was found you can process request by yourself
  * chain is url pieces delimited by /
  * you can inject any parameter (thanks to di)
  * @param Web $web
  * @param array $chain
  */
 function processChain(Web $web, $chain)
 {
     $this->display('url', array('base' => $web->getUrl(), 'request' => $web->getUrl(implode('/', $chain))));
 }
Ejemplo n.º 2
0
 /**
  * if no method was found you can process request by yourself
  * chain is url pieces delimited by /
  * you can inject any parameter (thanks to di)
  * @param Web $web
  * @param array $chain
  */
 function processChain(Application $application, Web $web, $chain)
 {
     $application->getFenom()->display('url', array('base' => $web->getUrl(), 'request' => $web->getUrl(implode('/', $chain))));
 }