• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me with Pagination with pjax

#1
I am trying to use pjax with codeigniter pagination..

Without pagination its works but when I implement pagination its change State url but after its reload..
My Controller
PHP Code:
$this->load->library('pagination');

        
$FilterData $this->input->get();

        
$config bootstrapPagination();
        
$config['base_url'] = main_url('members');
        
        
$config["total_rows"] = $this->member->browse_search_total($FilterData);
        
$config["per_page"] = PER_PAGE;
        
$config['reuse_query_string'] = TRUE;
        
$this->pagination->initialize($config);

        
$data["links"] = $this->pagination->create_links();

        
$data['members'] = $this->member->browse_search($FilterDataPER_PAGE$offset);


        
$this->pagination->initialize($config);

        
$data['links'] = $this->pagination->create_links();

 if (isset(
$_SERVER['HTTP_X_PJAX']) && $_SERVER['HTTP_X_PJAX'] == TRUE)
        {
            
$this->load->view('show_members'$data);
        } else
        {

            
$this->output->set_template('frontend');
            
$this->output->set_title('Members | ' sitename());
            
$this->load->view('show_members'$data);
        } 
Reply

#2
AnyOne?
Reply

#3
I have a CI jQuery pagination that I wrote for CI ver 2.x I need to re-write it for the new CI 3.0 release later.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#4
Doesn't have time for waiting.. Help with default pagination which should works with js(pjax) and without js
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.