mhunesi/yii2-crontab-input
Composer 安装命令:
composer require mhunesi/yii2-crontab-input
包简介
Yii2 Crontab Input Extensions
关键字:
README 文档
README
Yii2 Crontab Input Extensions
Installation
The preferred way to install this extension is through composer.
Either run
composer require mhunesi/yii2-crontab-input "*"
or add
"mhunesi/yii2-crontab-input": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= $form->field($model, 'cron')->widget('\mhunesi\crontab\input\CrontabInput',[ 'tab' => 'weekly', 'tabs' => [ 'minutes' => false, //Minutes tab invisible 'hourly' => false, //Minutes tab invisible 'daily' => false, //Minutes tab invisible 'weekly' => true, //Minutes tab visible 'monthly' => true, //Minutes tab visible 'yearly' => true, //Minutes tab visible 'advanced' => false,//Minutes tab invisible ] ]) ?>
Or
<?= \mhunesi\crontab\input\CrontabInput::widget([ 'name' => 'cron' ]) ?>
Preview
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-16