This is so far the best calendar library I've seen in my life :) That's what I call a rapid development.
Just unpack to extensions directory.
$this->widget('ext.EFullCalendar.EFullCalendar', array( // polish version available, uncomment to use it // 'lang'=>'pl', // you can create your own translation by copying locale/pl.php // and customizing it // remove to use without theme // this is relative path to: // themes/<path> 'themeCssFile'=>'cupertino/theme.css', // raw html tags 'htmlOptions'=>array( // you can scale it down as well, try 80% 'style'=>'width:100%' ), // FullCalendar's options. // Documentation available at // http://arshaw.com/fullcalendar/docs/ 'options'=>array( 'header'=>array( 'left'=>'prev,next', 'center'=>'title', 'right'=>'today' ), 'lazyFetching'=>true, 'events'=>$calendarEventsUrl, // action URL for dynamic events, or 'events'=>array() // pass array of events directly // event handling // mouseover for example 'eventMouseover'=>new CJavaScriptExpression("js_function_callback"), ) ));
public function actionCalendarEvents() { $items[]=array( 'title'=>'Meeting', 'start'=>'2012-11-23', 'color'=>'#CC0000', 'allDay'=>true, 'url'=>'http://anyurl.com' ); $items[]=array( 'title'=>'Meeting reminder', 'start'=>'2012-11-19', 'end'=>'2012-11-22', // can pass unix timestamp too // 'start'=>time() 'color'=>'blue', ); echo CJSON::encode($items); Yii::app()->end(); }

Total 6 comments
Hello Thanks for this work, any way to show a photo or print html in the event?
Regards
why my prev and next buttons won't appears? what is the correct URL to load the image? and what file I need to edit if I want to change these buttons? thanks in advance :)
nice :)
emit, thanks for a quick respond!
followed your coding, but it still not work, but it's still good start point. gonna examine more on this iself...
thanks,pod2g !
The answer is in the description, you need to pass this function as CJavaScriptExpression, otherwise it will be treated as a string and escaped.
@emit, thanks for nice extension.
however, i (yiibie) am trying to add more option without success:
i debug in firebug: show error message b[k].apply is not function.
Can you help me out on this, example would be nice.
Thanks, pod2g
Leave a comment
Please login to leave your comment.