I have a question regarding models interacting with each other directly (as opposed to this happening in the controller) and MVC practices in general.
I am building a forum using CakePHP and it's working well so far but there is a lot of logic that is in the controller and I am wondering if this can be moved to the model. For example when adding a new post I create a new Post object but I also have to update the Topic object, and I'm currently doing this from the controller. However could I have it when a new Post is created it automatically updates the Topic directly from the Post model? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
