コード例 #1
0
ファイル: WebTest.php プロジェクト: cti/core
 public function testControllerUrlComplete()
 {
     $web = new Web();
     $web->add('/my', __CLASS__);
     $this->setExpectedException('Exception');
     $web->add('/my/', __CLASS__);
 }
コード例 #2
0
ファイル: DefaultController.php プロジェクト: cti/manager
 /**
  * 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))));
 }
コード例 #3
0
ファイル: DefaultController.php プロジェクト: cti/scheduler
 /**
  * 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))));
 }