这个问题主要是tp3.2  

在读取控制器里的方法时,会把方法自动转为小写,

然后去对应view成找html文件,自然找不到。

class textController extends ComController
{


    public function helloWorld(){
        $this->display();
//        这个页面就回去Text目录下面找helloworld.html 页面 而不是helloWorld.html

//       应该改为 $this->display('Text/helloworld');
    }
  }

 

相关文章:

  • 2021-11-23
  • 2021-05-30
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-11-24
猜你喜欢
  • 2021-08-26
  • 2021-09-27
  • 2021-08-24
  • 2021-09-17
  • 2022-12-23
  • 2021-04-30
相关资源
相似解决方案