News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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



Similar Posts

DevShed: An Introduction to Simulating the Model-View-Controller Schema in PHP

The Bakery: Eight New Articles, Helpers & Components

Alex Netkachov's Blog: Zend, Prado, ASP.NET. Which framework is the best?

Symfony Blog: Updates to the Plugin Website/Resources

Zenning! Blog: Web Frameworks: Which one to learn?


Community Events











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


application PEAR developer code framework mysql releases job zendframework conference zend package security book database release cakephp PHP5 ajax example

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