ThinkPHP 5
2024-10-19 08:57:51
use think\Controller
1、$this->request->param(); 内置request 安全对象, 不再使用 $_GET ,$_POST
2、pathinfo 下 前台获取url参数 http://120.77.62.87/Questionnaire/public/index.php/home/Index/login/templateid/21
<?php echo input('templateid');?>
{$Request.param.templateid}
2、
控制器 hello_world 表示为 HelloWorld , config.php 中 url_convert 选项可以关闭/开启 转换
3、用Db类操作数据库
Db::table('tb_biao')->where($map)->order('sort_number asc')->select();
Db::table('tb_biao')->where($con_map)->value('value');
Db::table('tb_biao')->where($where)->find();
$phone['phone'] = $_REQUEST['phone'];
Db::table('tb_biao')->where('phone="' . $phone['phone'] . '"')->update($phone);
Db::table('tb_biao')->insert($phone);
最新文章
- 深入学习jQuery选择器系列第三篇——过滤选择器之索引选择器
- 突然出现 -bash: pod: command not found 的解决方法
- 精选29款非常实用的jQuery应用插件
- js event 2
- UVa 1635 (唯一分解定理) Irrelevant Elements
- MVC构架思想
- 手动创建Servlet--J2EE学习笔记
- LDAP查询实例
- 一个初学者的辛酸路程-python操作SQLAlchemy-13
- Mozilla Firefox的各级版本链接
- http请求方法之options请求方法
- 主成分分析、实例及R语言原理实现
- VB (空字串)、Null、Empty、与 Nothing 的区别
- 关于Android系统的启动流程
- Qt5_加载DLL
- 深入理解 Session 与 Cookie
- entos 7 mailx配置163邮箱发送邮件
- 安装redis-3.2.10单节点
- jquery 常用工具方法
- python脚本批量杀死redis链接