Welcome Guest, Not a member yet? Register   Sign In
Everywhere stuff
#5

[eluser]dcheslow[/eluser]
So true; everything DB related should be in a model... BUT, I often have business logic that needs to be performed on Save (e.g. email the administrator, upload files, scrape websites, convert images, etc.)... sooooo... (and I should have been more clear in my earlier post).... the controller asks the model if this is a new record, performs business logic associated with save and dispatches to the sub-controller either insert or update. The sub-controller then performs any business logic specific to insert or update (usually not) and then dispatches an insert/update to one or more models.

=dave=


Messages In This Thread
Everywhere stuff - by El Forum - 06-06-2009, 02:47 PM
Everywhere stuff - by El Forum - 06-06-2009, 02:51 PM
Everywhere stuff - by El Forum - 06-06-2009, 08:53 PM
Everywhere stuff - by El Forum - 06-07-2009, 12:32 AM
Everywhere stuff - by El Forum - 06-07-2009, 04:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB