Welcome Guest, Not a member yet? Register   Sign In
Problem extending library
#1

[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:


Messages In This Thread
Problem extending library - by El Forum - 02-26-2011, 12:59 AM
Problem extending library - by El Forum - 02-26-2011, 01:23 AM
Problem extending library - by El Forum - 02-26-2011, 01:42 AM
Problem extending library - by El Forum - 02-26-2011, 01:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB