News Feed
Sections




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

Chris Hartjes's Blog:
CakePHP Pagination With A HABTM Relationship
December 13, 2007 @ 08:48:00

Chris Hartjes has posted a mini-tutorial on working with HABTM (Has And Belongs To Many) relationships in a CakePHP applications alongside pagination.

There are usually lots of Has And Belongs To Many relationship questions on the CakePHP mailing list. Since I am stupid about this stuff, I sought out Nate Abele and bugged him via IM until he agreed to give me an example of how to do this.

He includes both the how and the why, explaining that merging the parameters allows the script to apply the HABTM connections as well as limiting the results for each page.

0 comments voice your opinion now!
cakephp framework habtm relationship database pagination cakephp framework habtm relationship database pagination


blog comments powered by Disqus

Similar Posts

The Bakery: Six New Components/Articles/Tutorials (SOAP, XHR, Tickets, Models, Releases & Flashes)

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 10)

Phil Sturgeon's Blog: CodeIgniter Packages != Modules

Nay Pryce's Blog: "Dependency Injection" Considered Harmful

Ed Finkler's Blog: So what is the state of secure development in PHP?


Community Events





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


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

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