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

错误如下:

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

[plain] view plain copy

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

改成:

[html] view plain copy

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

相关文章: