Hi Tony, You can most likely use what ever url you like :). The last example below (named paramters) is native to cake 1.2 but you can do it quite easily with cake 1.1.7:
Assuming controller modules and action show, you can use any of the following: Modules/Show?level=2&parentLevelId=24&levelId=44 Modules/Show/2/24/44 Modules/Show/level/2/parentlevel/24/LevelID/44 <- with some custom code. A bit fragile. Modules/Show/level:2/parent:24/LevelID:44 Or any other permutation you can think of (probably). You could put a simple beforeDelete method in your model to take care your your parent problem, I don´t think you would need a parentLevelID field in your module - that would be in the level model. Self joins aren´t an issue. Regarding the different foreign keys, see http://manual.cakephp.org/chapter/models. If the key isn´t following convention - you simply override it in the association defenition and "that's that". HTH, AD7six --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---