• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pagination Issues

I have been trying to solve a pagination issue for a long time now to no avail.

Here is a sample URL: http://furogiftshop.com/categories/cookware/1

The pagination links are located just above the products. When you click on any other page number, the first page number (1) is always set as the current page number.

Any help will be appreciated.

My controller code: http://pastebin.com/gqzYFMRz
My view code: http://pastebin.com/iQFgJ9Fy

Have you tried setting manually setting the uri_segment config item? The user guide says it automatically detects the URI you are going for, but from what I can tell from the code it just sets it at 3 and calls it a day (at least in CI2.0, unless I'm missing something).

Look here there are 4 parts to this!

Web Lee Pagination tutorial



I have tried manually setting the uri_segment config item... and I've still got the same problem.


I've been through that tutorial. Nothing that I don't know.

This problem beats my imagination.

Im also have a problem, somebody can help me?

function index() {

        $CI = &get;_instance();
        $title = $CI->config->item('site_title');
        $data['title'] = $title;
        $data['date'] = date('Y:m:d');
        $data['copyright'] = $CI->config->item('copyright');
        $data['description'] = $CI->config->item('description');
        $data['keywords'] = $CI->config->item('keywords');
        $data['pages'] = $this->Content->get_pages();
        $data['rubrics_pages'] = $this->Content->get_rubrics_pages();
        $data['links'] = $this->Content->get_links();
        $data['count_comments'] = $this->Utility->count_comments();
         * Pagination


        $config['base_url'] = $this->config->item('base_url').'blog';
        $config['total_rows'] = $this->Utility->count_rubricspages();
        $config['per_page'] = '2';

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

         * End Pagination
        $this->load->view('default/home', $data);
<?= $pagination ?>

on Main page of my blog i got
Quote:1 2 3 > Last ›

function get_rubrics_pages() {
        $this->db->order_by('id', 'DESC');
        $query = $this->db->get('pages');
        return $query->result_array();
But Links like :
Quote:404 Page Not Found

The page you requested was not found.

[quote author="InsiteFX" date="1277114047"]Look here there are 4 parts to this!

Web Lee Pagination tutorial


that is !

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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