Hello,
I'm writing an interface for products database. My models: products, manufacturers, subcategories, categories. Each product belongsTo manufacturer and HABTM subcategories. Subcategory belongsTo category. Also the other way around - manufacturer hasMany products etc. I need a page listing all products with all their subcategories and categories. I used products index page for that. When I findAll products, I get info about manufacturer and subcategories - not about category. I tried setting recursive to 2 or more, but I got nothing. Not even a template with no data, but an empty page, no HTML at all. What's happening? For my product add and product edit view, I needed a similar functionality - displaying both category and subcategory in the HTML select. I found a solution on that group - afterFind function in subcategory, adding "fullname" field to subcategory. I thought this might be a workaround, but no luck again. Tried putting this code in both subcategory and product model, but I don't get this field with product->findAll results. Any ideas? Igor --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
