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 6388639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:18:15+00:00 2026-05-25T03:18:15+00:00

since I need to use a zend db select object for the zend paginator,

  • 0

since I need to use a zend db select object for the zend paginator, I was wondering if anybody found an implementation of an automatic conversion mechanism b/w a normal query to a zend db select object or have actually implemented such automatic conversion and is willing to share the code…

note that I’m not asking HOW to convert query to zend db select…I know how to do it….I’m asking if anybody already have/know an actual coded implementation of such procedure since I don’t wanna waste time reinventing the wheel….

  • 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-25T03:18:16+00:00Added an answer on May 25, 2026 at 3:18 am

    You should be able to use the null adapter, and simply pass in a count rather than a query. You’d need to figure out the count (total # of records) yourself, prior.

    $total = 531; // from COUNT(*) or similar
    
    $paginator = Zend_Paginator::factory($total);
    $paginator->setCurrentPageNumber($page);
    $paginator->setItemCountPerPage($perPage);
    $paginator->render();
    

    This allows you to use the paginator just to render pagination, rather than to actually apply limiting to data. You should be able to generate a LIMIT clause pretty easily if you have the page, and the items per page.

    You can also make your own adapter which takes a (string) query, and you apply the limit to the end of it with your adapter. This way, you could also have it implement the getItems() method so it’s standardized.

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

Sidebar

Related Questions

I currently have a Maven application within Netbeans. Since I need to use regular
I need to use a many to many relationship in my project and since
I cant use the 'requires call capability' since it need to be compatible with
I am using FckEditor in Create.aspx page in asp.net mvc application. Since I need
I need help converting eregi_replace to preg_replace (since in PHP5 it's depreciated): function makeClickableLinks($text)
Since i'm a poor sql developer, i need support to write a sql query
I need show a notication modal window.. But since its a fluid layout the
I need something simple like date , but in seconds since 1970 instead of
I need to upload a bunch of files in a directory to S3. Since
What is the need of Collection framework in Java since all the data operations(sorting/adding/deleting)

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.