2017 © Pedro Peláez
 

yii2-extension yii2fullcalendar

Yii2 fullcalendar Widgets

image

kilasbff/yii2fullcalendar

Yii2 fullcalendar Widgets

  • Monday, May 25, 2015
  • by kilas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 71 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

yii2fullcalendar

JQuery Fullcalendar Yii2 Extension JQuery from: http://arshaw.com/fullcalendar/ Version 2.1.1 License MIT, (*1)

JQuery Documentation: http://arshaw.com/fullcalendar/docs/ Yii2 Extension by philipp@frenzel.net, (*2)

A tiny sample can be found here: http://yii2fullcalendar.beeye.org, (*3)

Latest Stable Version Build Status Code Climate Version Eye License, (*4)

Installation

Package is although registered at packagist.org - so you can just add one line of code, to let it run!, (*5)

add the following line to your composer.json require section:, (*6)

  "philippfrenzel/yii2fullcalendar":"*",

And ensure, that you have the follwing plugin installed global:, (*7)

php composer.phar global require "fxp/composer-asset-plugin:~1.0", (*8)

Changelog

29-11-2014 Updated to latest 2.2.3 Version of the library, (*9)

Usage

Quickstart Looks like this:, (*10)


$events = array(); //Testing $Event = new \yii2fullcalendar\models\Event(); $Event->id = 1; $Event->title = 'Testing'; $Event->start = date('Y-m-d\TH:m:s\Z'); $events[] = $Event; $Event = new \yii2fullcalendar\models\Event(); $Event->id = 2; $Event->title = 'Testing'; $Event->start = date('Y-m-d\TH:m:s\Z',strtotime('tomorrow 6am')); $events[] = $Event; ?> = \yii2fullcalendar\yii2fullcalendar::widget(array( 'events'=> $events, )); ``` Note, that this will only view the events without any detailed view or option to add a new event.. etc. AJAX Usage ========== If you wanna use ajax loader, this could look like this: ```php = yii2fullcalendar\yii2fullcalendar::widget([ 'options' => [ 'language' => 'de', //... more options to be defined here! ], 'ajaxEvents' => Url::to(['/timetrack/default/jsoncalendar']) ]); ?>

and inside your referenced controller, the action should look like this:, (*11)

public function actionJsoncalendar($start=NULL,$end=NULL,$_=NULL){

    \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;

    $times = \app\modules\timetrack\models\Timetable::find()->where(array('category'=>\app\modules\timetrack\models\Timetable::CAT_TIMETRACK))->all();

    $events = array();

    foreach ($times AS $time){
      //Testing
      $Event = new \yii2fullcalendar\models\Event();
      $Event->id = $time->id;
      $Event->title = $time->categoryAsString;
      $Event->start = date('Y-m-d\TH:i:s\Z',strtotime($time->date_start.' '.$time->time_start));
      $Event->end = date('Y-m-d\TH:i:s\Z',strtotime($time->date_end.' '.$time->time_end));
      $events[] = $Event;
    }

    return $events;
  }

The Versions

25/05 2015

dev-master

9999999-dev http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

25/05 2015

v1.0.1

1.0.1.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

25/05 2015

v1.0.0

1.0.0.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

30/08 2014

dev-fullcalendar16

dev-fullcalendar16 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT License

The Requires

 

framework yii yii2 fullcalendar