Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Paginating Blog Entries with Code Igniter
Dec 18, 2008 @ 17:11:19

DevShed continues their series covering the CodeIgniter framework in this second part, a look at paginating the results of a database query for blog entries.

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. [...] 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.

Basing the enhancements on the code from the previous article, they update their controller to use the pagination library that comes with the framework to split up the results. The page number is based off of the third parameter of the URL.

tagged: pagination page blog entry codeigniter tutorial library

Link:


Trending Topics: