@killsalad: Sorry to whinge at you, but it's a pet hate of mine when newbies are given advice on how to deviate from conventions when their query simply does not need this advice. If you are going to to do this, at least give some sort of caveat as to when they should or shouldn't otherwise you're adding confusion for someone who is likely feeling more than a little daunted by Cake's learning curve.
@ambika: I would recommend only naming models/tables with non conventional names WHEN FACED WITH NO OTHER CHOICE (i.e. using a legacy table which you are unable to rename/recreate). Most of the problems people face when using Cake is because they deviate from the conventions so the more you comply with them the better. I would also second @crickets advice that you should change MainCategory to Category and add a parent_id field. When feeling more confident it is very easy to then alter this model to use the Tree behaviour and quickly get access to unlimited sub categories all from one model/table. HTH Paul. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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 To unsubscribe, reply using "remove me" as the subject.
