Welcome Guest, Not a member yet? Register   Sign In
Very unique / One time queries in model
#2

[eluser]Burak Guzel[/eluser]
I don't see anything wrong with that. It is good to keep your Controllers lean, but Models do not have to be. There is nothing wrong with having a Model method that gets called only by a single Controller.

But if you are repeating the basic CRUD methods across all of your Models (such as getAll and getSingle), you might want to create a base Model class (such as MY_Model), which you can extend with your Models.


Messages In This Thread
Very unique / One time queries in model - by El Forum - 06-24-2010, 12:26 PM
Very unique / One time queries in model - by El Forum - 06-24-2010, 01:05 PM
Very unique / One time queries in model - by El Forum - 06-25-2010, 08:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB