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