thinkphp5 隐藏index.php无法访问

浏览:7295 发布日期:2016/11/20 分类:ThinkPHP5专区
按着教程操作的,结果index 模块确实可以访问,但是创建其他的控制器就不能访问了
[0] HttpException in App.php line 347
模块不存在:hello_world
$available = true;
}

// 模块初始化
if ($module && $available) {
// 初始化模块
$request->module($module);
$config = self::init($module);
} else {
throw new HttpException(404, 'module not exists:' . $module);
}
} else {
// 单一模块部署
$module = '';
$request->module($module);
}
// 当前模块路径
App::$modulePath = APP_PATH . ($module ? $module . DS : '');

Call Stack
in App.php line 347
at App::module(['hello_world', 'index', null], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 138
at App::run() in start.php line 18
at require('/Users/leo/CodeSpace...') in index.php line 17
最佳答案
评论( 相关
后面还有条评论,点击查看>>