![](https://img-blog.csdnimg.cn/20200116175315274.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Thinkphp
( 霹雳火—秦明)武艺高强,性如烈火!
光头强儿
这个作者很懒,什么都没留下…
展开
-
tp多文件上传致命错误: Call to a member function move() on string
解决方案在使用tp上传多个文件上传的时候,一定要注意前台的写法!!!先把我代码贴出来参考一下:index控制器:<?phpnamespace app\index\controller;use think\Controller;use think\Loader;use think\Db;use think\Request;class Index extends Contr...原创 2019-02-22 11:37:28 · 11143 阅读 · 0 评论 -
tp5连接多个数据库
config.php中中定义db2:控制器中打印一下:<?phpnamespace app\index\controller;use think\Controller;use think\Db;use think\Request;class Index extends Controller{ public function index() { //...原创 2019-02-26 09:20:59 · 6973 阅读 · 2 评论 -
tp5引入extend类
在extend文件夹有一个IpLocation的文件,在tp5中怎么引入这个类呢?在IpLocation类中定义命名空间:在控制器里实例化后即可调用:原创 2018-12-24 20:12:40 · 1510 阅读 · 0 评论 -
tp5使用return $this->fetch视图渲染
直接使用会报错,只需继承Controller类即可:原创 2018-10-24 15:26:14 · 15167 阅读 · 0 评论 -
tp框架使用validate验证器
文件目录index.php<?phpnamespace app\index\controller;use app\index\validate\User;use think\Controller;use think\Request;class Index extends Controller{ public function index() { ...原创 2018-10-24 19:46:59 · 1380 阅读 · 0 评论 -
tp报错:致命错误: Call to undefined function captcha_src()的解决方案
原因分析:知道为啥错吗?因为你的tp项目的vendor里没有任何东西正常情况下:需要composer或者从网上下载tp中的验证码类文件才能使用,从官网上下载的tp框架默认是没有验证码类文件的,需要自己手动下载。这样才能够使用验证码~解决方案:具体请参考:https://www.cnblogs.com/elliotnoob/p/6672172.html...原创 2018-11-07 15:19:48 · 18269 阅读 · 0 评论