Example #1
0
	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::$site_path 		= self::$ci->config->item('template.site_path');
		self::$theme_paths 		= self::$ci->config->item('template.theme_paths');
		self::$layout 			= self::$ci->config->item('template.default_layout');
		self::$default_theme 	= self::$ci->config->item('template.default_theme');
		self::$parse_views		= self::$ci->config->item('template.parse_views');
		
		// Store our orig view path, so we can reset it
		self::$orig_view_path = self::$ci->load->_ci_view_path;
		
		log_message('debug', 'Template library loaded');
	}