Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

faravaghi/jalali-fullcalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jalali-fullcalendar

Jalali FullCalendar

Latest Stable Version Total Downloads Latest Unstable Version License

Great JavaScript calendar converted to Yii extension with Full Calendar.

Example usage:

<?php 
$this->widget('ext.JFullCalendar.JFullCalendar', array(
    'options'=>array(
        'header'=>array(
            'left'=>'prev,next',
            'center'=>'title',
            'right'=>'today'
        )
    )));
?>

sample load event from controller:

'events'=>$this->createUrl('event/calendarevents'),

and load from two or more controllers:

'eventSources'=>array(
	$this->createUrl('event/calendarevents'),
	$this->createUrl('site/calendarevents'),
),

If you are on Jalai date, need the convert Jalai to Gregorian for show in calendar. for example if your date is '1392/05/27' , need convert to '2013/08/18'.