[eluser]Sumeet Kashyap[/eluser]
Hi folks!
There is a problem extending my library on server but i is working perfectly fine on local wamp. I am trying to extend the CI pagination library with my own library using the following code:
Code:
class my_pagination extends CI_Pagination {
function __construct($params = array())
{
parent::__construct($params);
}
function initialize_js_function($jsFunction = array())
{
// Code here
}
}
I have set the config param as:
Code:
$config['subclass_prefix'] = 'my_';
The server is running linux where i know the file system is case sensitive and so i have named the library as "
my_pagination.php". I am loading the library as it should using
Code:
$this->load->library('pagination');
but it seems to having some problem and giving me the error:
Fatal error: Call to undefined method CI_Pagination::initialize_js_function()
Please help,
Thanks in advance :red: