0
這是我的分頁設置笨:分頁的笨還是未來eventhough只有一個頁面
$pagination_config = array(
// pagination settings
'base_url' => site_url('lab/hasil_rawat_jalan'),
'total_rows' => $jawaban_lab->total_row(),
'suffix' => '?column=' . $column_name . '&value=' . $value,
'reuse_query_string' => FALSE,
'per_page' => $per_page,
// 'uri_segment' => 3,
'num_links' => floor(count($labs)/15),
// config for bootstrap pagination
'full_tag_open' => '<ul class="pagination">',
'full_tag_close' => '</ul>',
'first_link' => false,
'last_link' => false,
'first_tag_open' => '<li>',
'first_tag_close' => '</li>',
'prev_link' => '«',
'prev_tag_open' => '<li class="prev">',
'prev_tag_close' => '</li>',
'next_link' => '»',
'next_tag_open' => '<li>',
'next_tag_close' => '</li>',
'last_tag_open' => '<li>',
'last_tag_close' => '</li>',
'cur_tag_open' => '<li class="active"><a href="#">',
'cur_tag_close' => '</a></li>',
'num_tag_open' => '<li>',
'num_tag_close' => '</li>'
);
我的問題是,爲什麼分頁仍顯示鏈接到下一頁eventhough我設置「NUM_LINKS」爲0,這樣的:
如何刪除鏈接到下一個頁面?
什麼呢'$ jawaban_lab-> total_row()'回報? –
點擊下一步,是什麼引發? –
@RejoanulAlam在jawaban_lab表中返回總排,我用1代替測試,但仍然是相同的 – stacheldraht27