|
分页功能全部正常,只是first显示不出来
function V_list_news()
{
$this->load->model('M_news');
$this->load->library('pagination');
$config['base_url'] = site_url('dance/V_list_news');
$config['total_rows'] = $this->db->count_all('news');
$config['per_page'] = 3;
$congig['uri_segment'] = 3;
$config['first_link'] = 'First';
$config['first_tag_open'] = '<span>';
$config['first_tag_close'] = '</span>';这里不显示
$config['full_tag_open'] = '<div id="pagination">';
$config['full_tag_close'] = '</div>';
$config['num_tag_open'] = '<span style="float:left">';
$config['num_tag_close'] = '</span>';
$config['prev_link'] = '上一页';
$config['prev_tag_open'] = '<div id="pre_page" style="float:left">';
$config['prev_tag_close'] = '</div>';
$config['next_link'] = '下一页';
$config['next_tag_open'] = '<div id="next_page" style="float:left">';
$config['next_tag_close'] = '</div>';
$config['cur_tag_open'] = '<b style="float:left">';
$config['cur_tag_close'] = '</b>';
$data['news'] = $this->M_news->get_per_page('news',$config['per_page'],$this->uri->segment(3));
$this->pagination->initialize($config);
$this->load->view('V_list_news',$data);
} |
|