Thank you both for your response.

I know these aren't the real class names and whatnot....just trying to
put my code in the best hypothetical situation. It's not really forest
and trees....it's courses (forest) and subjects these courses include
(trees). A course can have multiple subjects. i.e. History of Math is
both History and Math. Therefore courses hasMany subjects and subjects
belongTo courses.

Basically, I'm creating a search engine. Because the majority of the
info people want to search is in the courses, the main search
functionality is in the courses controller. However, I need to make it
so someone can search by subject and find the course listed with ALL
associated subjects. i.e. I search for courses that have Math, in my
results I see History of Math and that it covers both Math and
History.

The initial trouble came in because I couldn't filter the Subjects in
the Courses controller. The hasMany association allows me to filter
the subjects, but still displays all courses.

Any thoughts?

I'll try implement your ideas and see what happens.

Thanks,
Beau


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to