Splitting responsibilities between controller and model |
A supplementary question:
Is it worth using the Entity class? A search reveals very few results for it. In my original post I had a method to tidy the data up so if Mister Shouty typing in all caps put his name as "JOHN SMITH" which while valid isn't usual, I could convert it to "John Smith" before sending it to the model which would do the validation to check there's no unwanted characters. From the documentation https://www.codeigniter.com/user_guide/m...ities.html it seems like this is just the sort of thing an Entity class is meant for. |
Messages In This Thread |
Splitting responsibilities between controller and model - by bobw - 03-04-2024, 03:47 AM
RE: Splitting responsibilities between controller and model - by InsiteFX - 03-04-2024, 04:51 AM
RE: Splitting responsibilities between controller and model - by bobw - 03-04-2024, 05:54 AM
RE: Splitting responsibilities between controller and model - by bobw - 03-04-2024, 11:53 AM
RE: Splitting responsibilities between controller and model - by kenjis - 03-04-2024, 06:20 PM
RE: Splitting responsibilities between controller and model - by bobw - 03-04-2024, 11:48 PM
|