3 ms·
Indeed. Even if you are not using an ORM, controller functions should be short. Functions are just not supposed to be 30+ lines. If my controller function isn'
by Aqueous 13y ago
Indeed. Even if you are not using an ORM, controller functions should be short. Functions are just not supposed to be 30+ lines.
If my controller function isn't less than 20 lines of code I look over it and figure out what code can be placed in a library or a model or a view. The controller function should do very little.