blob: 3a7d9361c22624232cc96d04f258855a6b9e22e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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';
?>
|