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