jlorente/yii2-weeklyschedule-selector

一个为Yii2框架提供周计划选择器的插件,可以附加到需要周计划组织的模型上。

安装: 24

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 4

分支: 0

开放问题: 0

语言:JavaScript

类型:yii2-extension

dev-master 2015-10-01 22:55 UTC

This package is auto-updated.

Last update: 2024-09-10 05:27:03 UTC


README

一个为Yii2框架提供周计划选择器的插件,可以附加到需要周计划组织的模型上。

本插件基于由artsy开发的jQuery插件day-schedule-selector。有关配置的更多文档,请访问(http://www.jqueryscript.net/time-clock/Create-A-Basic-Weekly-Schedule-with-Hour-Selector-Using-jQuery.html)或官方仓库

安装

要安装,可以运行

$ php composer.phar require jlorente/yii2-weeklyschedule-selector "*"

或添加

    "require": {
        "jlorente/yii2-weeklyschedule-selector": "*"
    }

到您的composer.json文件的require部分,然后从您的项目目录运行以下命令。

$ composer update
$ ./yii migrate --migrationPath=@app/vendor/jlorente/yii2-weeklyschedule-selector/src/migrations

最后一个命令将创建处理周计划的所需表。

基本用法

首先,您必须将模块包含到您的Web应用程序中。

./console/config/main.php

    // ... other configurations ...
    "modules" => [
        // ... other modules ...
        "command" => [
            "class" => "jlorente\weeklyschedule\Module"
        ]
    ]

许可证

版权所有 © 2015 José Lorente Martín jose.lorente.martin@gmail.com.

在MIT许可证下发布。有关详细信息,请参阅LICENSE.txt。