在根目录的route也有设置,不会加载,源码我看过了app目录已经被指向/app/test/了
Route::get('test', 'index/test');
下面是这部分的代码,搞不清是我用法问题还是这里有问题... } else {
/*if (!is_dir($this->app->getAppPath() . $name)) {
$name = null;
}*/
$appName = $name;
}
if ($name) {
$this->app->request->setRoot('/' . $name);
$this->app->request->setPathinfo(strpos($path, '/') ? ltrim(strstr($path, '/'), '/') : '');
}
最佳答案
