Welcome Guest, Not a member yet? Register   Sign In
Simple Ajax paging with existing pagination lib & jQuery
#7

[eluser]jiahui[/eluser]
hello,

I followed exactly the explanation as Berserk described and applied it into my project.

But I get this error msg: Parse error: syntax error, unexpected T_VARIABLE ....

What is the problem on this line:
Code:
$this->pagination->initialize($config);
?

Below is the scripting which I added into controller:

Code:
// Set pagination    
        $config['base_url']        = site_url('accounts/');        
        $config['total_rows']      = 1000;
        $config['uri_segment']     = 3;
        $config['per_page']        = '10';
        $config['is_ajax_paging']      =  TRUE; // default FALSE
        $config['paging_function'] = 'ajax_paging' // Your jQuery paging
        
        $this->pagination->initialize($config);
                
        $data['pagination'] = $this->pagination->create_links();
        
        $data['accounts'] = $this->usercontacts_model->get_admin_contacts($this->pagination->per_page, $this->uri->segment(3))


Messages In This Thread
Simple Ajax paging with existing pagination lib & jQuery - by El Forum - 10-30-2009, 03:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB