diff options
Diffstat (limited to 'system/init/init_calendar.php')
-rw-r--r-- | system/init/init_calendar.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/system/init/init_calendar.php b/system/init/init_calendar.php new file mode 100644 index 000000000..5cf663725 --- /dev/null +++ b/system/init/init_calendar.php @@ -0,0 +1,19 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates calendar class + * + * @access private called by the app controller + */ + +if ( ! class_exists('CI_Calendar')) +{ + require_once(BASEPATH.'libraries/Calendar'.EXT); +} + +$obj =& get_instance(); + +$obj->calendar = new CI_Calendar(); +$obj->ci_is_loaded[] = 'calendar'; + +?>
\ No newline at end of file |