tp5+小程序开发笔记(六)
在application/extra下的配置文件都会被tp5自动加载 新建setting.php return[ 'img_prefix'=>'http://wmc.com/images' ] 使用模型的获取器拼接图片路径 tp5中只有public是公开的 public/images/1,jpg config('配置文件.配置名称'); $a = confi
在application/extra下的配置文件都会被tp5自动加载 新建setting.php return[ 'img_prefix'=>'http://wmc.com/images' ] 使用模型的获取器拼接图片路径 tp5中只有public是公开的 public/images/1,jpg config('配置文件.配置名称'); $a = confi
上传 /** * 单文件上传 * @param string $file 文件路径 * @param int $size 上传文件限制的大小 * @param array $type 上传文件的类型 * @param string $uploads 保存的路径 * @return bool|string 返回上传保存后的路径 */ function uplo