Is this the same query as you've posted at http://groups.google.com/group/cake-php/browse_thread/thread/1db322c3db6238d3?
It's much better to contain all aspects of a query in one thread that way people have the entire picture of what you are doing in one place. This is also a continuation of your other thread where cricket recommended combining main_categories and sub_categories into one categories model. http://groups.google.com/group/cake-php/browse_thread/thread/1da057bd3af822d7/087e50fa9706de80?lnk=gst&q=webbedit+tree+category#087e50fa9706de80 Did you think much about doing this as it would make life so much easier for you as it's a much more efficient and future-proofed approach to dealing with categories. In fact if you made that categories model use the Tree behaviour you could then use Tree::generatetreelist() to create one select list allowing you to choose a category from anywhere in the tree structure. HTH Paul Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe, reply using "remove me" as the subject.
