解决ThinkPHP中开启调试模式无法加载模块的问题。



刚开始学习ThinkPHP就遇到这种问题,还是自己粗心。

错误如下:

原因:开启调试模式,区分大小写的,要把模块名首字母大写就OK了。也就是:

http://localhost/php/fanhuar/index/index.php/index/  
http://localhost/php/fanhuar/index/index.php/index/
改成:

http://localhost/php/fanhuar/index/index.php/Index/  
http://localhost/php/fanhuar/index/index.php/Index/

你可能感兴趣的:(其它编程)