Welcome Guest, Not a member yet? Register   Sign In
Avoiding massive controller: where to put individual files
#10

@sneakyimp

Models contain business logic in the generic sense. Some people see them only interacting with the database, well, its a narrow interpretation. If you think that a piece of code belongs to a model, move it there.

About the emails: Sending emails from models is not a problem. It would be nice emails to be driven by an Event system, but CodeIgniter alone does not have such.
Reply


Messages In This Thread
RE: Avoiding massive controller: where to put individual files - by ivantcholakov - 12-28-2014, 08:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB