blob: 3a7d9361c22624232cc96d04f258855a6b9e22e4 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2
3/**
4 * Loads and instantiates pagination class
5 *
6 * @access private called by the app controller
7 */
8
9$config = array();
10if ( ! class_exists('CI_Pagination'))
11{
12 if (file_exists(APPPATH.'config/pagination'.EXT))
13 {
14 include_once(APPPATH.'config/pagination'.EXT);
15 }
16
17 require_once(BASEPATH.'libraries/Pagination'.EXT);
18}
19
20$obj =& get_instance();
21$obj->pagination = new CI_Pagination($config);
22$obj->ci_is_loaded[] = 'pagination';
23
24?>