[eluser]Dani[/eluser]
I'm wondering if there are any clear conventions/recommendations for naming files and stuff in CI/MVC/PHP. I want to have consistency in the code, filenames and in the db.
Let's say I have a admin site for Persons.
What should the methods in the controller be called?
- add() vs insert() vs create() vs new() vs add|insert|create|new_person() vs person_add|insert|create|new() ?
- edit() vs update() vs person_edit|update() vs edit|update_person() ?
The model has corresponding methods for each of those methods in the controller, should they be named the same as it's corresponding controller method?
How about the views, person/add.php vs person/person_add.php vs person/add_person.php (or *new*,*insert*,*create* ?