TP 框架使用时的盲点
来源:互联网 发布:防止微信屏蔽分享域名 编辑:程序博客网 时间:2024/04/30 16:42
1:页面跳转
1:function Mes($mes,$url){
echo "<script>
alert('$mes');
window.location.href='$url';
</script>";
}
echo "<script>
alert('$mes');
window.location.href='$url';
</script>";
}
2:$this->redirect();
3:
页面跳转遇到的方法:location.href:url(); 2 header(location:url()); window.location.href:url();
页面返回用到的语句:history.Go(--1) more information !!!!!!
$this->redirect(string url, array params, int delay, string msg)
ThinkPHP redirect 实例
在 Index 模块 index 方法中,重定向到本模块的 select 操作:
class IndexAction extends Action{ public function index(){ $this->redirect('select', array('status'=>1), 3, '页面跳转中~'); }}
2:文件上传时,使用$_FILES来搜集信息;
3: 数据库中表的名字与modle模型类的名字有关
0 0
- TP 框架使用时的盲点
- TP框架Hook的使用
- TP框架的关联模型的使用
- TP框架----hook(钩子)的使用
- TP框架的使用(ThinkPHP3.2.2)
- TP框架的介绍和使用
- POPWindow的使用技巧盲点
- TP框架基本使用
- TP框架使用注意事项
- TP框架的配置文件
- TP框架--验证码使用
- TP框架验证码使用
- TP框架开发的站点使用phpdoctor生成文档注意事项
- Think PHP(TP)框架的基本使用 (一)
- Think PHP(TP)框架的基本使用 (二)
- Think PHP(TP)框架的基本使用 (补充)
- Think PHP(TP)框架的基本使用 (三)
- TP框架的page怎么在view中使用
- delphi 用别名的方式访问excel写入数据,实现非标格式报表输出
- 浅谈CSS3新特性——动画animation
- 支付
- handler的使用
- c++类 class
- TP 框架使用时的盲点
- nginx+apache实现网站的ssl加密(https)
- dba_object查询到表名,select ...from 表名查询不到
- Linux 下修改或者重命名用户名称或者UID/GID
- OpenGL 环境配置
- Thinkphp下如何处理用户单设备登陆
- java主流框架的作用
- Android Activity的启动与创建
- VMware10.0安装Mac OS X 10.11超详细教程