In your models you need to create belongsTo and hasMany relationships. This link should be enough to get you going:
http://manual.cakephp.org/chapter/6 On 8/8/06, Voodoo <[EMAIL PROTECTED]> wrote: > > I mean category mapping from the two tables categories. > > > i/p tables: > ======= > > table Categories > id cat_name master_id > 1 Apparel > Shirt 0 > 2 Apparel > Skirt 0 > > table: master_categories (Tree Structure) > id parent_id cat_name > 1 0 Apparels > 2 1 Women > 3 1 Men > 4 3 Shirt > 5 2 Skirt > > Desired Output: > =========== > table Categories > id cat_name master_id > 1 Apparel > Shirt 4 (Shirt belongs > to Men) > 2 Apparel > Skirt 5 (Skirts > belongs to Women) > > Brandnew to MVC and thrilled! > > > > > -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
