I have a category table using tree behaviour and a product table which
has many categories.
The categories looks like this
All Products
-parent a
--child a
--child a
-parent b
--child b
--child b
My products are then using the child categories. I want to use the
url /site/parent-a/ and then see all products in the page. If the
users then want to see /site/parent-b/ the same controller/action
should be used.
What the best way to do this? Should i use $this->params['url'] and
then use find to get the category.id. I would then need to get the
children of this id and add it to the product find condition. Am i on
the right track or is there an easier way?
Ross
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment