Ai
33 Star 74 Fork 3

speedphp/speed

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BaseController.php 763 Bytes
一键复制 编辑 原始数据 按行查看 历史
speedphp 提交于 2017-03-15 09:26 +08:00 . 修正了err404方法的参数对应
<?php
class BaseController extends Controller{
public $layout = "layout.html";
function init(){
header("Content-type: text/html; charset=utf-8");
}
function tips($msg, $url){
$url = "location.href=\"{$url}\";";
echo "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><script>function sptips(){alert(\"{$msg}\");{$url}}</script></head><body onload=\"sptips()\"></body></html>";
exit;
}
function jump($url, $delay = 0){
echo "<html><head><meta http-equiv='refresh' content='{$delay};url={$url}'></head><body></body></html>";
exit;
}
//public static function err404($module, $controller, $action, $msg){
// header("HTTP/1.0 404 Not Found");
// exit;
//}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/SpeedPHP/speed.git
git@gitee.com:SpeedPHP/speed.git
SpeedPHP
speed
speed
master

搜索帮助