Tuesday, August 30, 2011

Re: tags - pagination

Teknoid has written a load of useful blog posts about HABTM and
created a HABTMable behaviour which would help you.
http://nuts-and-bolts-of-cakephp.com/?s=habtm

Go have a read, I have read them all as gives you a much better
understanding of how you can control HABTM relationships and join
tables. Personally i prefer to model-ise my join tables so I can run
finds and paginates on the join model and the other two tables are
automagically joined.

Posts hasMany PostsTag
PostsTag belongsTo Posts, Tag
Tag hasMany PostsTag

HTH, Paul.

On Aug 29, 8:25 pm, Prabha vathi <prabha.ridd...@gmail.com> wrote:
> Hi
>
> Please someone help me on this. I want to do it using cakephp method. I
> don't want to write custom query, until if it is not possible using cakephp

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: