模板路径中出现“_”问题, 开关调试模式会报错

浏览:365 发布日期:2014/12/23 分类:求助交流
class ShippingAreaController extends Controller
{
public function index(){
$this->display();
}
}

正常情况下对应数据表是:shipping_area,对应的模板文件应该是:shipping_area/index.html
在调试模式下这个一切正常,当关闭调试模式后,系统会找不到模板文件 ,
应为系统查找的模板文件是:shippingarea/index.html,而不再是shipping_area/index.html。 中间的“_”直接被忽略掉了。
最佳答案
评论( 相关
后面还有条评论,点击查看>>