Tuesday, August 30, 2011

Re: Pretty HABTM List Entry

Hi Mondo,

Paul is right, you should model-ise your join table, effectively creating a "hasMany through" association, since you're adding additional fields that are not part of the table's foreign keys. You might want to read this:

http://book.cakephp.org/view/1650/hasMany-through-The-Join-Model

IMHO, I think that you're looking for a helper instead of a behavior, as this is clearly display logic for your views. You might want to try out Paul's suggestion of using jQuery clone(), and then moving the code into a helper.

Just my two cents' worth. :)
OJ

--
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: