当前位置: 首页 > 后端技术 > PHP

Yii2配合LinuxCrontab执行定时脚本

时间:2023-03-29 18:59:01 PHP

首先说一下YiiConsole是如何实现定时任务的。1.首先创建一个Controller,继承yii\console\Controller;