Avoiding massive controller: where to put individual files |
@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. |
Welcome Guest, Not a member yet? Register Sign In |