Best way to do multiple pagination on one page in codeigniter

I saw some old posts in this section about stack overflows, but none of them seem to provide clarity. What I understood after going through them is that codeigniter does not support multiple pagination through your class and that you have to write your own class.

I wonder if this is so. If any authority has an idea on how to do this, please let me know. I have three lists that I turn into a view. However, when I break them all down, all three lists respond to the same page offset. Does Ajax_pagination come out?

Please suggest how to do this.

UPDATE: Here is my code and what I'm trying to do. This is a view file. I have two lists: 1. org_list 2. Ind_list I am trying to go to these two lists in the tow files (organization_listing, individual_listing), both of which are loaded into this view file and therefore appear on the same page. Now I can split the pages into one list, but when I split the second file, they both respond to the same uri offset.

I create pagination links in view files (organization_listing, individual_listing).

<?php 

    $config['base_url'] = 'http://localhost/socialinew/user_registration/index.php/members_area/view_members_area';
    $config['total_rows'] = count($org_list);
    $config['per_page'] = 4;
    $config['num_links'] = 20;
    $config['full_tag_open'] = '<div id="pagination3">';
    $config['full_tag_close'] = '</div>';

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

    for($i=$this->uri->segment(3)+0;$i<(($this->uri->segment(3)+$config['per_page']));$i++)
    {
        if(isset($org_list[$i]))
        {$temp_org[$i]=$org_list[$i];
        }


    }

    $tmp_org['org_list']=$temp_org;


$this->load->view('organization/organization_listing',$tmp_org);



    $org_config['base_url'] = 'http://localhost/socialinew/user_registration/index.php/members_area/view_members_area/';
    $org_config['total_rows'] = count($ind_list);
    $org_config['per_page'] = 5;
    $org_config['num_links'] = 20;
    $org_config['full_tag_open'] = '<div id="pagination2">';
    $org_config['full_tag_close'] = '</div>';

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

    for($i=$this->uri->segment(4)+0;$i<(($this->uri->segment(4)+$config['per_page']));$i++)
    {
        if(isset($ind_list[$i]))
        {$temp_ind[$i]=$ind_list[$i];
        }
    }

        $tmp_ind['ind_list']= $temp_ind;    

$ this-> load-> View ('individual_listing', $ tmp_ind) ;? >

+5
source share
2 answers

, , , javascript , , javascript . .

+1

1 2 3 4

 results

1 2 3 4

 results

, :

  • (, uri 3)
  • ;
  • .

  • (, uri 4)
  • ;
  • .
+1

All Articles