
thinkphp模块不存在怎么解决?
解决方案:
1.在\application\Common\Controller目录下添加“EmptyBaseController.class.php”文件。
相关推荐:《ThinkPHP教程》
立即学习“PHP免费学习笔记(深入)”;
2.在所有项目的Controller目录下添加EmptyController.class.php并继承”\Common\Controller\EmptyBaseController“。
3.在\data\conf\config.php里添加" EMPTY_PATH "项自定义当访问不存在的模块时需要跳转的页面。
'/index.php',/*访问不存在的模块时跳转的地址*///其他配置项);? >











