0

Yii2-Fullcalendar – Update Event

Previously I had written a post regarding how to create FullCalendar plugin in an Yii2 Framework application.  In this tutorial we will show you how to update events in FullCalendar plugin in an Yii2.

Installation

Package is although registered at packagist.org – so you can just add one line of code, to let it run!

add the following line to your composer.json require section:

"philippfrenzel/yii2fullcalendar":"*",

or run:

$ php composer.phar require philippfrenzel/yii2fullcalendar "*"

And ensure, that you have the following plugin installed global:

php composer.phar global require “fxp/composer-asset-plugin:~1.0”

Usage

After complete Yii2-Fullcalendar Part-1 and Part-2, proceed to following.

Yii2 Fullcalendar - Update

 

In index.php

Triggered when the user clicks an event.

function( event, jsEvent, view ) { }

event is an Event Object that holds the event’s information (date, title, etc).

jsEvent holds the native JavaScript event with low-level information such as click coordinates.

view holds the current View Object.

eventClick will not be triggered for background events.

 

EventController.php

 


 

Prakash S

Prakash S

I would like to introduce myself as a Software professional opting for the career in software industry. I'm Prakash S, a MCA graduate and trained as industry level practice for Software technology. Basically I am a PHP Developer but now days exploring more in HTML5, CSS, AngularJS and jQuery libraries.