How to select all created items in Mighty Resource Calendar template ?
Template Version 3.7 :
Download Calendar tmpl
Lines : 333,334,335
$_items = array();
foreach ($this->items AS $item)
$_items[date('Y',$item->ctime->toUnix())][date('z', $item->ctime->toUnix())] = $item;
The code just select the current month items , we need to select all created items from the database , this feature is required for other calendars like Shamsi ( Jalali ) Calendar , As we need item from previous and next Gregorian Monthes to calculate all the current Jalali Month items.
we need $this->items to select all items .