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);

最新文章

  1. 深入学习jQuery选择器系列第三篇——过滤选择器之索引选择器
  2. 突然出现 -bash: pod: command not found 的解决方法
  3. 精选29款非常实用的jQuery应用插件
  4. js event 2
  5. UVa 1635 (唯一分解定理) Irrelevant Elements
  6. MVC构架思想
  7. 手动创建Servlet--J2EE学习笔记
  8. LDAP查询实例
  9. 一个初学者的辛酸路程-python操作SQLAlchemy-13
  10. Mozilla Firefox的各级版本链接
  11. http请求方法之options请求方法
  12. 主成分分析、实例及R语言原理实现
  13. VB (空字串)、Null、Empty、与 Nothing 的区别
  14. 关于Android系统的启动流程
  15. Qt5_加载DLL
  16. 深入理解 Session 与 Cookie
  17. entos 7 mailx配置163邮箱发送邮件
  18. 安装redis-3.2.10单节点
  19. jquery 常用工具方法
  20. python脚本批量杀死redis链接

热门文章

  1. java并发编程JUC第十二篇:AtomicInteger原子整型
  2. 【模拟7.14】B. 熟练剖分(tree) (概率DP)
  3. STP协议与MSTP协议
  4. Vue(12)组件的组织结构和组件注册
  5. Kubernetes之DaemonSet
  6. Python之数值运算(基础篇)
  7. 10、pfile和spfile文件详解
  8. Java+Selenium 上传文件,点击选择“浏览文件”按钮,报错invalid argument
  9. 从零玩转人脸识别之RGB人脸活体检测
  10. 资源:mysql下载路径