public function testControllerUrlComplete() { $web = new Web(); $web->add('/my', __CLASS__); $this->setExpectedException('Exception'); $web->add('/my/', __CLASS__); }
/** * 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)))); }
/** * 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)))); }