> Hmm... ok, I understand setting up the function in the Product model
> to run the query but I'm confused about the CategoryController.
> If I try to run:

$catProds = $this->Category->Product->getCategoryProducts($categoryId);

you have to traverse the associations tree back. If you're working
within CategoriesController, then Product is an associated table to
Category.

try pr($this->Category); // pr is cake shorthand for print_r

hth

jon

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