1 controller = 1 model VS. 1 controller = multiple model |
(08-27-2018, 01:20 PM)skunkbad Wrote:(08-27-2018, 09:33 AM)albertleao Wrote: ... Personally, I find it a lot easier and more organized to keep my models in a 1 to 1 relationship with database tables, then if I have some functionality I want to reuse that uses multiple models, I create a library. I find it easier to test as well since you can easily inject stubs for models in the library.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
|
Welcome Guest, Not a member yet? Register Sign In |