/** * Grabs an instance of the CI superobject, loads the Ocular config file, and * sets our default layout. * * @return void */ public static function init() { // If the application config file hasn't been loaded, do it now if (!self::$ci->config->item('template.theme_paths')) { self::$ci->config->load('application'); } // Store our settings self::$default_theme = self::$ci->config->item('template.default_theme'); self::$layout = self::$ci->config->item('template.default_layout'); self::$parse_views = self::$ci->config->item('template.parse_views'); self::$site_path = self::$ci->config->item('template.site_path'); self::$theme_paths = self::$ci->config->item('template.theme_paths'); log_message('debug', 'Template library loaded'); }