Welcome Guest, Not a member yet? Register   Sign In
Splitting responsibilities between controller and model
#4

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.
Reply


Messages In This Thread
RE: Splitting responsibilities between controller and model - by bobw - 03-04-2024, 11:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB