示例#1
0
 public function setUp()
 {
     $this->root = Router::getCurrent();
     //根路由
     $this->root->mount(TEST_ROOT . '/public', '*.php');
     $this->root->mount(TEST_ROOT . '/public', '*/*.php');
 }
示例#2
0
文件: Website.php 项目: jl9n/CuteLib
 public function mount($directory, $wildcard = '*.php')
 {
     $router = Router::getCurrent();
     $router->mount($directory, $wildcard);
     return $this;
 }
示例#3
0
文件: cutelib.php 项目: jl9n/CuteLib
 function mount($r, $VC = '*.php')
 {
     $fB = Router::getCurrent();
     $fB->mount($r, $VC);
     return $this;
 }