Thinkphp5中使用.env模拟本地环境变量,让配置更优雅! 自从thinkphp5发布以来,可以说越来越优雅了,竟然支持.env配置文件啦!想必熟悉那个以优雅著称的某框架的同学一定不陌生。 支持多种配置格式thinkphp... Thinkphp5中使用.env模拟本地环境变量让配置更优雅! 2021-2-24 thinkphp 热度:341 评论:1 作者: 菜鸟站长
thinkphp5+mysql事务案例 mysql的表存储引擎必须是innodb,事务就是多条sql其中一个执行失败就回滚,都执行成功才一起提交。保证多条sql要么都执行成功,要么都不成功。但是事务并不能避免高并发带来... thinkphp5事务案例 2021-2-12 thinkphp 热度:370 评论:0 作者: 菜鸟站长
thinkphp在iis7以上如何配置伪静态隐藏index.php 1.如果iis没有安装url重写模块,先下载url重写模块安装上,下载地址:https://www.microsoft.com/zh-cn/download/confirmati... thinkphp在iis7以上如何配置伪静态隐藏index.php 2020-12-11 thinkphp 热度:621 评论:0 作者: 菜鸟站长
thinkphp5常用模板标签使用方法 1.模板标签volist: {volist name="menulist_arr" id="menulist_arr0"} ... thinkphp5常用模板标签使用方法 2020-4-13 thinkphp 热度:2215 评论:0 作者: 菜鸟站长
如果解决thinkphp5未定义变量报错问题 1.控制器里面的方法,如果变量未定义直接报错 2.模板里面模板标签渲染的变量,未定义直接报错。 3.解决方案在config.p... 如果解决thinkphp5未定义变量报错问题 2020-1-31 thinkphp 热度:3067 评论:0 作者: 菜鸟站长
tp5在phpstudy下URL无法去掉index.php的解决方案 phpstudy (apache)中URL无法去掉index.php的解决方案 tp5默认设置的.htaccess文件在wamp中都可以实现了去掉(隐藏)index.... tp5在phpstudy下URL无法去掉index.php的解决方案 2019-1-6 thinkphp 热度:5043 评论:1 作者: 菜鸟站长
thinkphp模板if里面使用函数示例 html模板: <if condition="is_weixin() eq true "> <input type="but... thinkphp模板if里面使用函数示例 2017-9-11 thinkphp 热度:7074 评论:1 作者: 菜鸟站长
APACHE伪静态出现No input file specified解决办法 启用REWRITE的伪静态功能的时候,首页可以访问,而访问内页的时候,就提示:“No input file specified.”原因在于使用的PHP是fast_cgi模式,而... APACHE伪静态出现Noinputfilespecified解决办法 2017-4-5 thinkphp 热度:7068 评论:1 作者: 菜鸟站长
thinkphp save($data)的返回值 save方法的更新判断失败用 === false来判断, 否则执行都是成功的,只是如果为0 表示没有更新任何记录(就是你说的更新值和原来值相同的情况) ... save($data)的返回值 2016-6-4 thinkphp 热度:7014 评论:0 作者: 菜鸟站长
thinkphp数据库事务例子 1:首先,你的数据表格式得是innodb格式 2: $m=M('user');$m1=M('user_detail');$m->startT... thinkphp事务 2016-6-4 thinkphp 热度:6324 评论:0 作者: 菜鸟站长