Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 541815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:22:55+00:00 2026-05-13T10:22:55+00:00

I am browsing trough the CI documentation particularly http://codeigniter.com/user_guide/libraries/pagination.html . First thing that was

  • 0

I am browsing trough the CI documentation particularly http://codeigniter.com/user_guide/libraries/pagination.html .

First thing that was stuck in my mind was “CodeIgniter’s Pagination class is very easy to use, and it is 100% customizable, either dynamically or via stored preferences.” but there always but something.

My pagination is as following Previous 1 2 3 4 ... n Next now for each of these I can create opening html tags and closing html tags in my controller.

For ex:

Previous

$config['prev_tag_open'] = '<div class="previous">';

The opening tag for the "previous" link.
$config['prev_tag_close'] = '</div>';

Next

$config['next_tag_open'] = '<div>';

The opening tag for the "next" link.
$config['next_tag_close'] = '</div>';

And for Last first etc. Now in my design I made Previous float left Next float right and I have a <div class="middle_pager"> which holds all page numbers together in the middle.

From what I see in the documentation I don’t have a option in CI to put all page numbers in between html tags, I only have option to put each page number inside some tags, maybe there is a way but I missed a point. Anybody can help?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:22:55+00:00Added an answer on May 13, 2026 at 10:22 am

    The trick is, that you have to think out of the box.

    You should add a an opening tag to the end of of your “prev_tag_close”

    $config['prev_tag_open'] = '<div class="previous">';
    
    The opening tag for the "previous" link.
    $config['prev_tag_close'] = '</div>**<opening tag>**';
    

    and a closing tag at your “next_tag_open” like

    $config['next_tag_open'] = '**</opening tag>**<div>';
    
    The opening tag for the "next" link.
    $config['next_tag_close'] = '</div>';
    

    that should do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I've been toying around with Flash, browsing through the documentation, and all that,
while browsing through a queue examples, I came across http://login2win.blogspot.in/2008/07/c-queues.html Its a queue example
I have two URLs: http://s140452.gridserver.com/view-pullsheet/ https://s140452.gridserver.com/locations/ When browsing through any properties on the locations
browsing some html code I find a text input coded as: <input type=text name=Email<%=orderRow.ID
Browsing through Guava libraries I saw this weird signature on the readLines method of
I've been browsing through the documentation, but I can't seem to figure out a
Browsing through some C++ questions I have often seen comments that a STL-friendly class
I was browsing through the NPAPI documentation and I stumble on InvokeDefault method. Of
For Starters, i would like to note, that this is my first post on
I was browsing Facebook's documentation reading about canvas applications and I came across an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.