thinkphp
wangatong
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
thinkphp6 安装redis
在config/cache.php下添加'redis' => [ // 驱动方式 'type' => 'redis', // 服务器地址 'host' => '127.0.0.1', // 端口号 'port' => '6379', // 密码 'password'=> "",原创 2022-03-04 09:59:53 · 911 阅读 · 0 评论 -
thinkphp 新下载怎么开启debug
在根目录下新建.env,然后把.example.env内容复制过去就可以原创 2022-02-26 08:46:05 · 311 阅读 · 0 评论 -
php 获取日期(今天、昨天、上周、本周、上月、本月、季度、去年)
//今天$today = date(“Y-m-d”);//昨天$yesterday = date(“Y-m-d”,strtotime("-1 day"));//上周$lastweek_start = date(“Y-m-d H:i:s”,mktime(0, 0 , 0,date(“m”),date(“d”)-date(“w”)+1-7,date(“Y”)));$lastweek_end = date(“Y-m-d H:i:s”,mktime(23,59,59,date(“m”),date(“d”原创 2020-09-08 12:10:43 · 1377 阅读 · 0 评论 -
thinkphp下载
composer create-project topthink/think tpcomposer update原创 2021-10-11 10:02:47 · 163 阅读 · 0 评论 -
thinkphp5 使用initialize要继承Controller
<?phpnamespace app\index\controller;use think\Controller;class Common extends Controller{ public function initialize(){ echo 111; }}原创 2020-10-14 08:21:07 · 276 阅读 · 0 评论 -
thinkphp5下载+安装oss
切换镜像文件composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/composer create-project topthink/think=5.1.* tp5原创 2020-10-11 16:01:09 · 536 阅读 · 0 评论
分享