常用的CI笔记

1. thinkphp 封装好的$this->success(),就直接实现成功跳转,$this->error(),错误跳转。CI有show_error(),但是却不能直接实现跳转,所以需要手动更改下页面。
首先我们要知道show_error()在哪里?

system/core/common.php
system/core/Exception.php

页面显示 error_general.php

主要我们对页面文件进行修改

直接将$message 放成$url

页面中加入<meta http-equiv='refresh' content="2;url=<?php echo base_url($message);?>" />

posted on 2015-12-23 14:14  y_php  阅读(165)  评论(0编辑  收藏  举报