jlorente/yii2-weeklyschedule-selector

A Yii2 plugin that provides the framework with a weekly schedule selector to attach to models that need a weekly schedule organization.

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

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

This package is auto-updated.

Last update: 2024-12-10 06:13:25 UTC


README

A Yii2 plugin that provides the framework with a weekly schedule selector to attach to models that need a weekly schedule organization.

This plugin is based on the JQuery plugin day-schedule-selector developed by artsy. For more documentation of configurations visit (http://www.jqueryscript.net/time-clock/Create-A-Basic-Weekly-Schedule-with-Hour-Selector-Using-jQuery.html) or the official repository.

Installation

To install, either run

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

or add

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

to the require section of your composer.json file and run the following commands from your project directory.

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

The last command will create the table needed to handle the weekly schedule.

Basic Usage

First at all you must include the module in your web application.

./console/config/main.php

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

License

Copyright © 2015 José Lorente Martín jose.lorente.martin@gmail.com.

Licensed under the MIT license. See LICENSE.txt for details.