I read several previously asked questions, and I did not meet the one that answers my question in "black and white" for me! So apologize if this is repeated. The question is probably similar to the question: βhow long is a piece of stringβ, but carrying with me!
For the registration system, I have a user model with features such as:
- add_user
- delete_user
- activate_user
The above user model deals with a single table. The table of users in the MySQL database.
You can guess what each function does, but is it rude enough? I mean, if there were methods in my model that are much wider, for example:
- add_record
- delete_record
- update_record
Where do I go to the table and the unique identifier of the record to delete, add or update?
I use codeigniter, but I'm interested in how everything should be done in a clean MVC environment.
Sorry if this question is too picky.
Thank you all
php frameworks model-view-controller codeigniter
Abs
source share