Esempio n. 1
0
 public function setUp()
 {
     $this->root = Router::getCurrent();
     //根路由
     $this->root->mount(TEST_ROOT . '/public', '*.php');
     $this->root->mount(TEST_ROOT . '/public', '*/*.php');
 }
Esempio n. 2
0
 public function mount($directory, $wildcard = '*.php')
 {
     $router = Router::getCurrent();
     $router->mount($directory, $wildcard);
     return $this;
 }
Esempio n. 3
0
 function mount($r, $VC = '*.php')
 {
     $fB = Router::getCurrent();
     $fB->mount($r, $VC);
     return $this;
 }