Welcome Guest, Not a member yet? Register   Sign In
Pagination: Current Page / Back Problem
#1

[eluser]weetstraw[/eluser]
I'm having an issue using pagination. The current page of results does not go bold, it stays at 1. In addition, I do not get a back arrow. Below is my controller, any ideas?

I do get the right number of results per page and the results do change when I click 2, 3, etc...

Thanks in advance!

Code:
function discipline()
{
    $dis = $this->uri->segment(3);
    $offset = $this->uri->segment(4);
    $row= $this->Project_model->disciplineCount($dis);
    
    // Pagination
    $config=array(
        'base_url'         => base_url()."projects/discipline/".$dis,
        'total_rows'     => $row->total,
        'per_page'         => 12,
        'num_links'        => 10
    );
    $this->pagination->initialize($config);
    
    $data = array(
        'subTitle'         => ' - Projects',
        'css'             => array('projects'),
        'js'             => NULL,
        'menu'             => 'projects',
        'id'             => NULL,
        'dis'             => $dis,
        'switch'         => $this->Project_model->projectDiscipline($dis,$config['per_page'],$this->uri->segment(4)),
        'categories'     => $this->Project_model->category(),
        'disciplines'     => $this->Project_model->discipline($dis),
        'pagination'    => $this->pagination->create_links(),
        'boxes'         => array('projects-category','projects-discipline')
        );
    
    $this->load->view('project_view.php', $data);
}


Messages In This Thread
Pagination: Current Page / Back Problem - by El Forum - 08-12-2009, 11:06 AM
Pagination: Current Page / Back Problem - by El Forum - 08-12-2009, 12:34 PM
Pagination: Current Page / Back Problem - by El Forum - 08-12-2009, 12:45 PM
Pagination: Current Page / Back Problem - by El Forum - 03-06-2011, 11:47 PM
Pagination: Current Page / Back Problem - by El Forum - 01-15-2014, 09:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB