Blogs

Sorting related HABTM Model data using CakePHP Paginator Helper

I was gazing at my deformed reflection in the golden ball hanging from the Christmas tree while thinking of one of the client requests we received today. In all the times CakePHP helped me get things done quickly and legit. This time I believe I will have to do some extra work from my side. The request is to have the related Appointments to the Client model all listed in a table with sortable headers. Not a big deal except that the Client model has a HABTM relationship with the appointment.

Syndicate content