php - Codeigniter pagination create this prev and next links -



php - Codeigniter pagination create this prev and next links -

i seek create pagination in ci

i have html

<!--div class="pagination"> <a href="#" class="page-prev">previous</a> <ul> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> </ul> <a href="#" class="page-next">next</a>

in controller seek

$config['full_tag_open'] = '<div class="pagination"><ul>'; $config['full_tag_close'] = '</ul></div>'; $config['cur_tag_open'] = '<li class="active">'; $config['cur_tag_close'] = '</li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $config['next_link'] = ''; $config['prev_link'] = '<'; $config['next_tag_open'] = ''; $config['next_tag_close'] = ''; $config['prev_tag_open'] = ''; $config['prev_tag_close'] = '';

how can set prev_link , next_link outside ul ? if total tag open must (if i`m not wrong) tag ul

$("div.pagination ul > a:last-child" ).addclass("page-next"); $("div.pagination ul > a:first-child" ).addclass("page-prev");

it helped me

php html codeigniter

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -