
thinkPHP
文章平均质量分 78
qq_37880655
这个作者很懒,什么都没留下…
展开
-
tp6学习笔记
1:生成模块TP6.0,默认是应用模式,所以要先开启安装多应用拓展模式,命令行输入:composer require topthink/think-multi-app 然后再输入命令行 php think build demo 就不会出现 Command "build" is not define原创 2021-03-06 08:55:02 · 396 阅读 · 0 评论 -
ThinkPHP及PHP查询小技巧
1:关联查询并有的字段名相同查询全部字段$goodsNum = $cartlistM->field('*,a.id as cid')->join('Goods as b on a.goods_id = b.id')->where(array('a.id' =>$_POST['ca原创 2018-01-18 19:01:52 · 2688 阅读 · 1 评论 -
PHP创建(导出)Excel数据表格
参考内容1 参考内容2$filename = "order_".date('Y-m-d').".xls"; $header = array('订单编号','订单类型','会员ID','总加工费','商品总价','邮费','应付金额','订单状态','下单时间'); $index = array('order_sn','kind','mid','othe...转载 2018-03-27 16:12:31 · 355 阅读 · 0 评论 -
thinkphp5学习笔记
1:命令行新建控制器// 生成index模块的Blog资源控制器php think make:controller index/Blogps:如果不写index模块则在tp5Dome\application\common\controller下生成Blog控制器2:生成模块php think build --module test3:批量生成模块如果需要批量生成多个模块的目录和文...原创 2018-11-06 09:40:27 · 375 阅读 · 0 评论