News Feed
Sections




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

Debuggable Blog:
How to have multiple paginated widgets on the same page with CakePHP
August 26, 2008 @ 12:04:58

On the Debuggable blog Tim Koschutzki shows a way to have more than one paginated item on your page at a time (in a CakePHP application).

Many of you might have run into the problem of having multiple boxes on the same page that need to be paginated. For example you might have a left column with a list of members of your site and a right column that shows for a example a list of forums. Yeah, that's not the best example, but you get the idea.

The typical CakePHP pagination functional assumes that there's only one block of information that needs to be paginated per page. With Tim's modification, the model name for where the data is being pulled from is appended to the end of the URL and parsed by the script to know which is which.

0 comments voice your opinion now!
cakephp pagination widget multiple page


blog comments powered by Disqus

Similar Posts

Scarletlullaby.com: Refactoring to Rails (MVC) in PHP

Brian Swan's Blog: How to Page Data with the SQL Server Drivers for PHP

Gentoo Blog: Reminder - You *Can* Run PHP4 And PHP5 On The Same Box At The Same Time

Job Posting: QRIU Seeks a CakePHP Developer (Telecommute)

PHP-GTK Community Site: Which editing widget do you use in your PHP-GTK apps?


Community Events





Don't see your event here?
Let us know!


tips framework library language install interview voicesoftheelephpant community deployment opinion series release package introduction bugfix symfony laravel podcast list api

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework