404页面制作
1.config.php
'TMPL_EXCEPTION_FILE'=>'./Public/Tpl/error.html'
2.404.html
1.config.php
'TMPL_EXCEPTION_FILE'=>'./Public/Tpl/error.html'
2.404.html
见404.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>thinkphp 404页面</title>
<script type="text/javascript">
window.οnlοad=function(){
setTimeout(function(){
window.location.href='<?php echo __APP__; ?>';
},5000);
}
</script>
</head>
<body>
<div>
<p><?php echo $e['message'];?></p>
<div>页面将会在5秒后跳转 或直接点击 <a href="<?php echo __APP__;?>">返回首页面</a></div>
</div>
</body>
</html>