#thinkPHP5

在thinkphp5中怎样使用PHPWord

下载地址:https://github.com/PHPOffice/PHPWord一:引入适用tp5.0,tp5.1:1:composer方式(推荐)  a:根目录下执行:composerrequirephpoffice/phpword  b:引入:  use...

nginx配置thinkphp5

nginx,php,tp框架版本:nginx版本:[root@z_centosnginx]#/usr/local/nginx/sbin/nginx-hnginxversion:nginx/1.13.9tp5版本:thinkphp5.0.18PHP版本:[root@z_centosnginx]#php-vPHP7.2.3...
代码星球 代码星球·2021-02-15

Thinkphp5获取配置文件

$a=Config::load('config.php');var_dump($a);//检查配置文件是否存在$b=Config::has('app_status');var_dump($b);...
代码星球 代码星球·2021-02-15

ThinkPHP5.*获取当前模块,控制器,方法

$this->assign('controller',$request->controller());$this->assign('module',$request->module());$this->assign('action',$request->action());—————...

THINKPHP5 如何在 控制器内调用model模型

 搬运工 https://blog.csdn.net/hexiaoniao/article/details/84543676...

thinkphp5路由定义

hinkRoute::get('mmm','index/Index/routenew');上面注册路由的代码放在route.php  访问地址:http://6.com/public/index.php/mmm ...
代码星球 代码星球·2021-02-15

thinkphp5计算代码块的性能

Debug::remark('begin');static$i=0;while($i<10){echo$i=$i+1;echo'</br>';sleep(1);}Debug::remark('end');echoDebug::getRangeTime('begin','end').'s';//默认计算...

Thinkphp5高级进阶教程

   https://www.kancloud.cn/mikkle/thinkphp5_study/331362...

关于微信扫码登录的2种解决办法thinkphp5

关于微信扫码登录的2种解决办法1因为之前写过微信的扫码登录所以朋友有这个需求的时候我直接让他去微信开放平台去注册https://open.weixin.qq.com/  当然是这里了,因为是网站上的需求所以https://developers.weixin.qq.com/doc/oplatform/...

thinkphp5中的系统文件上传和$_FILES用法区别

thinkphp5中的系统文件上传和$_FILES用法区别$aa=request()->file('file');$bb=$aa->getInfo();后面的file是文件的名字$bb等同于$_FILES['file']file是上传的文件名...

thinkphp5获取富文本数据的处理

thinkphp5获取富文本数据的处理thinkphp5自带的input或者默认的Request::instance()->post()都是自带过滤所以用富文本提交的参数会被自动过滤请使用一下$all=Request::instance()->post(false);来获取所有的post参数比如$conte...

thinkphp5集成阿里云oss块存储过程github下载

1配置说明$config['KeyId']='11'; //accesskeyid$config['KeySecret']='222';//accesssecret$config['Bucket']='tyjyvideo';//相当于子域名$config['Endpoint']='http://oss-cn-...

thinkphp5中引入第三方扩展的方法extend

thinkphp5中引入第三方扩展的方法extend玩的还是phpexcel目录里面的文件夹是 使用方法1控制器顶部加入usethinkLoader;2控制器的函数里面 Loader::import("phpexcel.PHPExcel"); 整个文件代码<?phpnamespace...
首页上一页12345...下一页尾页