Thinkphp404页面设置
来源:互联网 发布:淘宝新店如何装修 编辑:程序博客网 时间:2024/06/08 10:52
Controller 增加 EmptyController.class.php
<?phpnamespace Frontend\Controller;use Think\Controller;class EmptyController extends Controller { function _empty(){ header("HTTP/1.0 404 Not Found"); $this -> display("Public:404"); }}
view 增加404.html
<include file="Public:head" /> <div style="width:1140px; margin:0 auto" > <img style="width:1140px;" src="/Public/Frontend/Images/404_bg.jpg"> </div><include file="Public:footer" />
这样就可以定制自己的404了。
阅读全文
0 0
- Thinkphp404页面设置
- thinkPHP404问题
- jsp设置页面过期
- 页面文件的设置
- 设置页面不缓存
- 页面打印自定义设置
- 设置页面不缓存
- 打印页面设置
- index页面设置
- top顶页面设置
- left左边页面设置
- right右边页面设置
- error错误页面设置
- 页面IE打印设置
- c#打印页面设置
- 任意页面设置页码
- 打印页面设置
- jsp设置页面过期
- 微信小程序脚本数据绑定(三)
- QGroundControl无人机地面站 QGCToolbox
- 数字化转型需要双模IT
- Vue 生命周期钩子
- 桶排序
- Thinkphp404页面设置
- Python3 PyQt5 pycharm 环境搭建
- 9.6-全栈Java笔记:二叉树和红黑二叉树
- Android Studio 生成自己的jar包
- 搭建一个提高开发效率的iOS静态库工程
- linux下ftp的设置
- AFNetworking 3.0 2次封装
- Pandas.plot 做图
- 黑站利器-中国菜刀的功能介绍和使用方法