mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
0240fd752d
commit
4edacd917b
14
enhanced-CI-pagination.md
Executable file
14
enhanced-CI-pagination.md
Executable file
@ -0,0 +1,14 @@
|
||||
(For codeigniter v1.7.1)
|
||||
Additional parameter for pager assign href value and onclick function.
|
||||
|
||||
{arg} value will be replace by {paging link tag}.
|
||||
so that if paging link tag is 20.
|
||||
ci class will output: href="http://sample/page/20"
|
||||
this class will output: href="http://sample/page/20" onclick="doSomething('20'); return false;"
|
||||
|
||||
[sample]
|
||||
$pagination_config['base_function_name'] = jhistoryList(\'#list/format/html/begin/{arg}\')';
|
||||
$pagination_config['replace_href_content'] = current_url().'#list/format/html/begin/{arg}';
|
||||
$this->pagination->initialize($pagination_config);
|
||||
|
||||
<a href="http://codeilo.blogspot.com/2009/06/enhanced-ci-pagination.html">Download</a>
|
Loading…
x
Reference in New Issue
Block a user