Welcome Guest, Not a member yet? Register   Sign In
$config['use_page_numbers'] = TRUE is not working perfectly in codeigniter 2.1.0?
#6

[eluser]TWP Marketing[/eluser]
[quote author="somenet" date="1337560562"]
Code:
<?php
class Books extends CI_Controller {
...
  function index() {
    // load pagination class
...
    $data['results'] =
$this->db->get('book',$config['per_page'],$this->uri->segment(3));
...
    $this->load->view('books_view', $data);
  }
}
when i fetch data in view file it does not return all data from the database as
well as actual data also.And my view file is like this
[/quote]

In your controller, you pass the limit and offset using the get() method. That
will limit the data you get back from the query. Are you sure the correct limit
and offset are passed? What is the full url used to call your page? Is segment 3
(the offset) correct?


Messages In This Thread
$config['use_page_numbers'] = TRUE is not working perfectly in codeigniter 2.1.0? - by El Forum - 05-21-2012, 02:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB