I am trying to make some basic web apps using code igniter and I have realized that I have a lot of elements calling controller methods which grab data from its corresponding model and I am trying to figure out the best way to name these methods which pretty much do the same thing.
For an example, say I want to grab all the users on my site. I would have a method in my controller named get_users() and then that method would load and call a method in my model named fetch_users() which would grab the users from the database and return the result_array to the controller and then from there to the view.
This seems a little redundant (Calling get_users() which calls yet another function named fetch_users())
I just want to know if this is the only way to do this sort of action, or if there is another "cleaner" way of doing it.
Hope this makes sense.
Thanks!