我知道可以使用CodeIgniter分頁庫。 但使用Bootstrap分頁類是令人困惑的。 請幫幫我。如果可能,請給我一個例子。如何在CodeIgniter中使用Bootstrap樣式類進行分頁
0
A
回答
2
CodeIgniter分頁類真的很酷,但我很難將它與twitter Bootstrap CSS框架集成在一起,它在初始化分頁庫時就像是一個額外的配置參數,所以我不得不修改CodeIgniter分頁類與Bootstrap兼容。
我創建了一個新的文件下的應用程序/庫/文件夾,並把它稱爲MY_Pagination.php
+0
請給我一些簡單的例子。我是新來的。 –
+0
plz檢查我提供的鏈接 –
0
修改後的CodeIgniter的分頁庫以及在jignesh.Raj鏈接的博客文章是我的博客和修改。http://draco-003.com/blog/
謝謝,我很高興它可以幫助那裏的人。
但我相信你應該使用正確的參考文獻? @ jignesh.Raj!?
P.S我無法發表評論,所以我添加了這個答案。
-1
<?php if(!defined('BASEPATH')) exit('Direct Access Not Allowed');
/* This Application Must Be Used With BootStrap 3 * */
$config['full_tag_open'] = "<ul class='pagination'>";
$config['full_tag_close'] ="</ul>";
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$config['cur_tag_open'] = "<li class='disabled'><li class='active'><a href='#'>";
$config['cur_tag_close'] = "<span class='sr-only'></span></a></li>";
$config['next_tag_open'] = "<li>";
$config['next_tagl_close'] = "</li>";
$config['prev_tag_open'] = "<li>";
$config['prev_tagl_close'] = "</li>";
$config['first_tag_open'] = "<li>";
$config['first_tagl_close'] = "</li>";
$config['last_tag_open'] = "<li>";
$config['last_tagl_close'] = "</li>";
相關問題
- 1. Codeigniter Bootstrap分頁
- 2. 分頁CSS樣式(Bootstrap)
- 3. 如何使用CodeIgniter中的字母進行分頁?
- 4. 如何在Codeigniter中使用分頁
- 5. 如何使用CodeIgniter引用我的Bootstrap樣式表
- 6. 如何在codeigniter中應用css樣式
- 7. 用選定記錄進行codeigniter分頁
- 8. 如何使用JavaScript在bootstrap分頁中隱藏中間頁面?
- 9. 如何通過codeigniter中的排序表進行分頁?
- 10. 如何使用simpledb進行分頁?
- 11. 如何使用cursor()進行分頁?
- 12. 如何使用NHibernate進行分頁?
- 13. 如何使用PHP在foreach循環中對行進行分頁
- 14. 在CodeIgniter中使用動態樣式表
- 15. 如何使用css&bootstrap樣式打印我的頁面
- 16. 使用codeigniter分頁
- 17. 如何在分段中使用codeigniter分頁?
- 18. codeigniter分頁類中的use_page_numbers?
- 19. 在jsp中使用ajax進行分頁
- 20. 使用mysql在nodejs中進行分頁
- 21. 如何使用CodeIgniter中的Permission類進行多級別登錄?
- 22. 如何使用Bootstrap和960.gs分離樣式和html
- 23. 如何在react-bootstrap中編輯樣式?
- 24. 如何在Bootstrap中選擇樣式
- 25. 如何在Perl中使用函數式樣進行編碼?
- 26. CodeIgniter的分頁類
- 27. 使用Bootstrap進行頁面導航
- 28. 如何在asp.net中進行分頁?
- 29. 如何在datagrid asp.net中進行分頁?
- 30. 如何在Google Firestore中進行分頁?
退房此鏈接 http://stackoverflow.com/questions/20088779/bootstrap-3-pagination-with-codeigniter – EBIWARI