限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。

ThinkPHP

栏目文章

thinkphp 5获取所有控制器的名称和方法

方法 /** *获取某个目录下的php文件名的函数 */ function getControllers($dir) { $pathList = glob($dir . '/*.php'); $res = []; foreach($pathList as $key => $value) { $res[] = basename($value, '.php');

tp5设置永久配置项

/** * 修改扩展配置文件 * @param array $arr 需要更新或添加的配置 * @param string $file 配置文件名(不需要后辍) * @return bool */ function extraconfig($arr = [], $file = 'extraconfig') { if (is_array($arr)) { $f

tp5 上使用ueditor富文本插件

将官方下载的数据包放入static 在需要的地方引入 {js href="__STATIC__/ueditor/ueditor.config.js" /} {js href="__STATIC__/ueditor/ueditor.all.js" /} var ue = UE.getEditor('container',{ // initialFrameWid

转载 | ThinkPHP5自动生成缩略图函数

function thumb($src = '', $width = 500, $height = 500, $type = 1, $replace = false) { $src = './'.$src; if(is_file($src) && file_exists($src)) { $ext = pathinfo($src, PATHINFO_EXTE

tp5控制器继承的问题

凡是遇到问题不要想当然,以前就没出错的的代码不一定就没错,只是没到时候而已 回归正题,下面是tp5控制器继承的源码 //主控制器

反馈邮箱