bootstrap 3 分页与代码
2022-08-30 19:26:32
我无法在我的分页中集成bootstrap 3,我在我的系统中使用codeigniter,这是我到目前为止的代码
$config['base_url'] = base_url()."/merchant/?";
$config['total_rows'] = $count_result; // Count total rows in the query
$config['full_tag_open'] = '<div class="pagination pagination-small pagination-centered"><ul>';
$config['full_tag_close'] = '</ul></div>';
$config['per_page'] = $limit;
$config['num_links'] = 5;
$config['page_query_string'] = TRUE;
$config['prev_link'] = '< Prev';
$config['prev_tag_open'] = '<li>';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = 'Next >';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class="active"><a href="#">';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$config['first_link'] = FALSE;
$config['last_link'] = FALSE;
$this->pagination->initialize($config);
$this->data['links'] = $this->pagination->create_links();
我想出了这个
我在这里错过了什么吗?