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