Issue: Trying to display nested categories, and when category has no
more child nodes, display listings of product for category.

Models:
categories ->
id
active
name
description
img
created
modified
parent_id
sort_order

products ->
id
category_id
name
img
cost
active
created
modified
description
sort_order

I'm looking for some assistance in setting up my controller & view for
the categories controller to get started.

I have a possible tree or hierarchy that looks like:

Apparel
- Mens
    - Tshirts
    - Hats
- Womens
   - Shirts
   - Hats

Music
- CDs

As you can see that there are nested categories.  The issue i'm having
in trying to set this up is in the category controller knowing when to
stop looking for more categories and search for products related to
the category.  I can't seem to find a good example to use as a
reference whereas this is my first time setting something like this
up.

Should i be using Model::findAllThreaded? or is there another model
function i should be using?


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