Welcome Guest, Not a member yet? Register   Sign In
Pagination jumping by per_page value?
#3

[eluser]papasnorkle[/eluser]
[quote author="Aken" date="1345768615"]Post the code where you actually initialize and use the Pagination library. Your pagination config looks fine for using page numbers the way you want, so it's probably with how you're initializing the code. Smile[/quote]

Thanks for the swift response Aken, I really appreciate your help, see below for the additional code.

taken from the controller:
Code:
public function type($type = "home", $identifier1 = "", $identifier2 = "")
{
  $this->load->spark('ci_alerts/1.1.7');
  $this->load->spark('ci_authentication/1.3.4');
  $this->load->library('pagination');
  $config = $this->Main_model->get_pagination_config($type, $identifier1, $identifier2);
  if( !empty($config) )
  {
   $this->pagination->initialize($config);
  }
  $data = array();
  $data['identifier1'] = $identifier1;
  $data['identifier2'] = $identifier2;
  $data['page_name'] = $type;
  $data['apps'] = $this->Main_model->get_main_layout($type,$identifier1,$identifier2);
  $data['app_list'] = $this->Main_model->get_app_list($type);
  if($data['apps']!="error")
  {
   $data['head'] = "template/html_top";
   $this->load->view('default_view',$data);
  } else {
   $data = array();
   $data['error_code'] = 404;
   $this->load->view('error_view',$data);
  }
}

taken from the view:
Code:
<div class="pagination">
&lt;?php echo $this->pagination->create_links(); ?&gt;
</div>


Messages In This Thread
Pagination jumping by per_page value? - by El Forum - 08-23-2012, 04:57 PM
Pagination jumping by per_page value? - by El Forum - 08-23-2012, 05:36 PM
Pagination jumping by per_page value? - by El Forum - 08-23-2012, 05:46 PM
Pagination jumping by per_page value? - by El Forum - 08-23-2012, 11:35 PM
Pagination jumping by per_page value? - by El Forum - 08-24-2012, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB