advance-calender Calender to show events with ajax load feature

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

This extension is an advance version of flowing-calender

I really liked it and needed it to show events along with ajax load. Hope it may be of use to others looking for the same.

Requirements ¶

Yii 1.1 or above

Installation ¶

Extract the release file under protected/extensions

Usage ¶

$this->widget('ext.calendar-advance.AdvanceCalendarWidget',array('month'=>$month, 'year'=>$year, 'events'=>$events)); 

I am assuming the events array to be of this format. Unix timestamp and the display content

Array
(
    [0] => Array
        (
            [rdate] => 1359657000
            [html] => 01 February, Friday
        )

    [1] => Array
        (
            [rdate] => 1359916200
            [html] => 04 February, Monday
        )
)

Set time zone and ajax controller in init()

date_default_timezone_set('Asia/Kolkata');
$ajaxRouteString = Yii::app()->controller->id."/cal";

Define your events array keys in AdvanceCalendarWidget.php as in the array above.

public $udate_key = 'rdate';
public $event_key = 'html';

Resources ¶

Project page

2 0
5 followers
986 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: User Interface
Developed by: snowwalker snowwalker
Created on: May 10, 2013
Last updated: 12 years ago

Downloads

show all

Related Extensions