Get the App
SLTechnology News&Howtos  ›  Development  › 

How the yii Framework creates scheduled tasks through console commands

Shulou Source: shulou.com Published: 2022-06-03 17:56:24 11月13日 Update

This article will explain in detail how the yii framework creates scheduled tasks through console commands. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Assume that the Yii project path is / home/apps/

1. Create a file / home/apps/protected/commands/crons.php

Tags: Configuration tasks commands files articles console framework control information content more good practical can make hour data database article method log Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information vpn Apple Huawei Shulou Technology