I'm new to Cake so I'm a bit confused on a few things after reading part of the documentation. We are a PHP shop and I'm a big fan of the homegrown framework so I turned to Cake and I like what I'm seeing.
First off, how do I format and access multiple url params? For example in normal PHP we do something like index.php?module=levels&action=show&level=2&parentLevelId=24&levelId=44 Also I'm in the process of migrating code from an older application into using CakePHP. What I'm possibly having a problem with is how my database was set up as far as fields go. Not so much in the naming but how they are storing data. How it works is we have multiple levels (i.e. Level 1, Level 2, Level 3, Level 4) but we have one table (levels) and a field called "Level" that contains what Level it is and "ParentLevelID" which if we are on Level 2 then we would have a ParentLevelID of a Level 1 item from that same table. (I know this isn't the best design and it's not how I wanted it designed). So basically ParentLevelID is the foriegn key of it's own table and I have to check to see if there are any levels that relate to the parent level before deleting. How do I check for this and set up the model for that? One more question. Within that same table levels we have two role ids (role1_id and role2_id) as we can have 2 roles per level. The problem I'm seeing is that according to how cake works with the database you have "theforiegntableName_id" but I have two foriegn fields that relate to the same table. Again not how I wanted it designed. So how would I deal with this without changing the database structure? Do I rename those fields or add a variable some where to configure something? Thanks for the help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---