码迷,mamicode.com
首页 > Windows程序 > 详细

tp3.2 页面Windows正常 linux异常,页面找不到

时间:2018-06-28 10:13:29      阅读:552      评论:0      收藏:0      [点我收藏+]

标签:目录   linu   extc   UNC   lin   异常   而不是   text   com   

这个问题主要是tp3.2  

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

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

class textController extends ComController
{


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

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

 

tp3.2 页面Windows正常 linux异常,页面找不到

标签:目录   linu   extc   UNC   lin   异常   而不是   text   com   

原文地址:https://www.cnblogs.com/wen-zi/p/9237081.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!