07 2022 档案

摘要:1.控制器 重定向url传参 try{ $result = Db::name('wupin')->insert($ist); if($result){ $this->redirect(url('wupin_index', ['bid' => $bid, 'process_id' => $proces 阅读全文

posted @ 2022-07-26 15:30 君子不卿 阅读(1002) 评论(0) 推荐(0) 编辑 |

摘要:第一种volist name=assign中的变量名 id=数组中的key offset=开始循环的位置 length=步长 {volist name='list' id='vo' offset='0' length='3'} <p>{$key} : {$vo.name} : {$vo.email} 阅读全文

posted @ 2022-07-25 10:35 君子不卿 阅读(192) 评论(0) 推荐(0) 编辑 |

摘要:<div class="hr-line-dashed"></div> <input type="hidden" value="" name="html" id="html_str"/> <div class="form-group"> <label class="col-sm-3 control-l 阅读全文

posted @ 2022-07-13 16:36 君子不卿 阅读(33) 评论(0) 推荐(0) 编辑 |

摘要:TP5.0获取当前域名的方法 use think\Request; $request = Request::instance(); $domain = $request->domain(); 获取的是全域名信息,带http 例如:http://baidu.com TP5.1获取当前域名的方法 $_S 阅读全文

posted @ 2022-07-08 17:10 君子不卿 阅读(1690) 评论(0) 推荐(0) 编辑 |

摘要:<style> .table-header td{ width: 100px; height: 40px; line-height: 40px; text-align: center; } </style> <table class="table-header"> <tr> <td rowspan= 阅读全文

posted @ 2022-07-08 11:07 君子不卿 阅读(176) 评论(0) 推荐(0) 编辑 |

摘要:简易的命令行入门教程: Git 全局设置: git config --global user.name "子卿" git config --global user.email "junzibuqing@qq.com" 创建 git 仓库: mkdir wenfuyi-v cd wenfuyi-v g 阅读全文

posted @ 2022-07-07 19:29 君子不卿 阅读(83) 评论(0) 推荐(0) 编辑 |

摘要:$html .= ' <div class="hd list04_hd"> <!-- 本级--> <div class="btn"> <em class="js-categoryAdd addYq" data-type="yiyuan" style="background-image: url('. 阅读全文

posted @ 2022-07-07 11:34 君子不卿 阅读(29) 评论(0) 推荐(0) 编辑 |

摘要:1.站点关闭 config修改 config($config); if(config('web_site_close') == 0 && session('uid') !=1 ){ $this->error('站点已经关闭,请稍后访问~'); } 在config里面添加 修改所有的config(ap 阅读全文

posted @ 2022-07-05 11:41 君子不卿 阅读(88) 评论(0) 推荐(0) 编辑 |

摘要:由dump的结果可知 除去不需要的前缀数据,然后就可以正常使用,解决问题。 unset($param['/admin/shiti/getregulations_html']); 阅读全文

posted @ 2022-07-04 19:45 君子不卿 阅读(499) 评论(0) 推荐(0) 编辑 |

摘要:1. 删除model里面没有的validate 添加验证 $validate = new UserValidate(); // var_dump($validate->check($param));exit; if (!$validate->check($param)) { return ['cod 阅读全文

posted @ 2022-07-04 18:55 君子不卿 阅读(497) 评论(0) 推荐(0) 编辑 |

摘要:修改model问题 注释这个代码 $model = Db::name('regulationsdtl_header'); 把文中的$model直接换掉,直接使用后面的Db,即可解决此问题 阅读全文

posted @ 2022-07-04 18:05 君子不卿 阅读(67) 评论(0) 推荐(0) 编辑 |

摘要:1,先找到文档位置 2.修改 在value后面添加|raw进行解析 {$vo.values|raw} 显示结果如下 阅读全文

posted @ 2022-07-04 15:49 君子不卿 阅读(37) 评论(0) 推荐(0) 编辑 |

摘要:1.where条件查询语句 添加判断(tp5.0升级5.1) if (is_array($field)&&empty($op)){ $field = associative_to_index($field); } 2.comment.php文件添加一个方法 function associative_ 阅读全文

posted @ 2022-07-04 15:30 君子不卿 阅读(239) 评论(0) 推荐(0) 编辑 |

摘要:1.TP5中遇到CLASS 'PHPOFFICE\PHPSPREADSHEET\SPREADSHEET' NOT FOUND这个问题 当你要使用excel导入导出的时候需要使用phpspreadsheet那么你就要composer composer require phpoffice/phpspre 阅读全文

posted @ 2022-07-04 14:29 君子不卿 阅读(755) 评论(0) 推荐(0) 编辑 |

摘要:报错信息: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'xinhui_sysmgr.s.id' which is not functionally dep 阅读全文

posted @ 2022-07-01 13:48 君子不卿 阅读(652) 评论(0) 推荐(0) 编辑 |

随笔 - 57, 文章 - 0, 评论 - 0, 阅读 - 23060

Copyright © 2025 君子不卿
Powered by .NET 9.0 on Kubernetes

//评论
点击右上角即可分享
微信分享提示