PHP
  Home arrow PHP arrow Paginating Blog Entries with Code Igniter
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Paginating Blog Entries with Code Igniter
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 2
    2008-12-17


    Table of Contents:
  • Paginating Blog Entries with Code Igniter
  • Creating a basic blog application with Code Igniter
  • Adding records pagination capabilities
  • Modifying the original view file

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Paginating Blog Entries with Code Igniter
    ( Page 1 of 4 )

    Welcome to the second installment of the series entitled “Building a blogger with the Code Igniter PHP framework.” Made up of four comprehensive tutorials, this series walks you through the development of a database-driven blogger by means of this useful package. It complements the corresponding theoretical concepts with numerous code samples.

    Introduction

    Code Igniter is a powerful PHP framework that allows you to build object-oriented web applications very quickly, by using the Model-View-Controller approach. Indeed, this software package comes equipped with a robust set of classes and helpers that will let you develop anything that you can think of, from simple web form processors to full-blow database-driven programs.

    So, if you’re interested in learning how to take advantage of the impressive capabilities of Code Igniter, and develop a MySQL-based blog application, then don’t hesitate -- start reading this article now!

    With the preliminaries out of our way, it’s time to briefly review the topics that were discussed in the previous tutorial. As you’ll surely recall, during that article I demonstrated how to build a basic blog application with Code Igniter, which only required us to code two files, namely the corresponding controller class and a simple view file.

    In this initial stage, the controller in question had a rather limited functionality, since it was only capable of displaying a bunch of blog entries that were previously stored in a MySQL table. Logically, the blog application in its current incarnation needs to incorporate some additional capacities, such as providing users with the ability to post comments on each particular entry, improve its visual presentation, and so forth.

    But as you may guess, all of these characteristics will be introduced progressively in successive chapters. Nevertheless, in this second article of the series, I’ll be explaining how provide the controller class built in the preceding tutorial with the capability for paginating blog entries.

    This specific process will require using the pagination class that comes included with Code Igniter, so don’t waste more time; start reading the next few lines. Fun is already guaranteed!




     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    Stay green...Green IT