如果解决thinkphp5未定义变量报错问题 1.控制器里面的方法,如果变量未定义直接报错 2.模板里面模板标签渲染的变量,未定义直接报错。 3.解决方案在config.p... 如果解决thinkphp5未定义变量报错问题 2020-1-31 thinkphp 热度:11553 评论:0 作者: 菜鸟站长
tp5在phpstudy下URL无法去掉index.php的解决方案 phpstudy (apache)中URL无法去掉index.php的解决方案 tp5默认设置的.htaccess文件在wamp中都可以实现了去掉(隐藏)index.... tp5在phpstudy下URL无法去掉index.php的解决方案 2019-1-6 thinkphp 热度:12391 评论:1 作者: 菜鸟站长
thinkphp模板if里面使用函数示例 html模板: <if condition="is_weixin() eq true "> <input type="but... thinkphp模板if里面使用函数示例 2017-9-11 thinkphp 热度:13494 评论:1 作者: 菜鸟站长
APACHE伪静态出现No input file specified解决办法 启用REWRITE的伪静态功能的时候,首页可以访问,而访问内页的时候,就提示:“No input file specified.”原因在于使用的PHP是fast_cgi模式,而... APACHE伪静态出现Noinputfilespecified解决办法 2017-4-5 thinkphp 热度:13642 评论:1 作者: 菜鸟站长
thinkphp save($data)的返回值 save方法的更新判断失败用 === false来判断, 否则执行都是成功的,只是如果为0 表示没有更新任何记录(就是你说的更新值和原来值相同的情况) ... save($data)的返回值 2016-6-4 thinkphp 热度:13006 评论:0 作者: 菜鸟站长
thinkphp数据库事务例子 1:首先,你的数据表格式得是innodb格式 2: $m=M('user');$m1=M('user_detail');$m->startT... thinkphp事务 2016-6-4 thinkphp 热度:12536 评论:0 作者: 菜鸟站长
php的file_get_contents和curl差距  ... file_get_contents和curl差距 2016-4-22 thinkphp 热度:12586 评论:0 作者: 菜鸟站长
ThinkPHP模板中判断volist循环的最后一条记录的验证方法 <div class="bannercxk1">开通城市: <volist name="citylist" id="row" > <if co... volist最后一条记录 2016-4-5 thinkphp 热度:16334 评论:0 作者: 菜鸟站长
thinkphp3.2 home为默认模块,怎么在URL里面隐藏掉home 默认地址已经去掉了index.php: http://localhost/yibuzhicheng/Home/Index/index.html 希望访问的... tp3.2去掉home 2016-3-29 thinkphp 热度:11207 评论:0 作者: 菜鸟站长
去除thinkphp url中的index.php(web服务器是apache) 例如你的原路径是 http://localhost/yibuzhicheng/index.php/Index/about.html 那么现在的地址是 http://localh... 去除thinkphpurl中的index.php 2016-3-29 thinkphp 热度:15687 评论:0 作者: 菜鸟站长