Exemplo n.º 1
0
Arquivo: WebTest.php Projeto: cti/core
 public function testControllerUrlComplete()
 {
     $web = new Web();
     $web->add('/my', __CLASS__);
     $this->setExpectedException('Exception');
     $web->add('/my/', __CLASS__);
 }
Exemplo 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(Web $web, $chain)
 {
     $this->display('url', array('base' => $web->getUrl(), 'request' => $web->getUrl(implode('/', $chain))));
 }
Exemplo n.º 3
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))));
 }