我在控制器里面,新建了EmptyAction:
<?php
class EmptyAction extends CommonAction{
function _empty(){
header("HTTP/1.0 404 Not Found");
$this->display('empty:index');
}
// 404
function index() {
header("HTTP/1.0 404 Not Found");
$this->display('empty:index');
}
}
公共模块中也加入了_empty方法:
function _empty()
{
header("HTTP/1.0 404 Not Found");
$this->display('empty:index');
}
TPL里面增加了Empty/index.html的模板页面
在WINDOWS下部署时,页面成功转向到404页面(Empty/index.html),
但在LINUX下,一直提示无法找到模板Empty/index.html

请问Linux下还需要如何设置??
.htaccess这些文件我也是配置了,Apache的重写属性我也是都设置成了All的
最佳答案