Codeigniter Bootstrap Pagination

后端 未结 5 1866
轻奢々
轻奢々 2021-02-06 15:30

I am making a web app with CodeIgniter and Twitter Bootstrap. I found a resource online with a list of $config settings to style the pagination links properly. Is there a way to

5条回答
  •  名媛妹妹
    2021-02-06 16:03

    You can save this as pagination.php in application/config:

    $config['per_page'] = 2;
    $config['uri_segment'] = 3;
    $config['num_links'] = 9;
    $config['page_query_string'] = TRUE;
    
    $config['query_string_segment'] = 'page';
    
    $config['full_tag_open'] = '';
    
    $config['first_link'] = '« First';
    $config['first_tag_open'] = '';
    
    $config['last_link'] = 'Last »';
    $config['last_tag_open'] = '';
    
    $config['next_link'] = 'Next →';
    $config['next_tag_open'] = '';
    
    $config['prev_link'] = '← Previous';
    $config['prev_tag_open'] = '';
    
    $config['cur_tag_open'] = '
  • '; $config['cur_tag_close'] = '
  • '; $config['num_tag_open'] = '
  • '; $config['num_tag_close'] = '
  • '; $config['anchor_class'] = 'follow_link';

提交回复
热议问题