Welcome Guest, Not a member yet? Register   Sign In
Model concept question
#1

I have two controllers that have two models which have the exact same method which performs the exact same queries.


PHP Code:
// model 1
$this->model1->get_users();
// model 2
$this->model2->get_user(); 


It felt so wrong to have the same exact code that does the exact same thing in my models. What should I do.
Reply


Messages In This Thread
Model concept question - by meSmashsta - 01-15-2017, 10:16 PM
RE: Model concept question - by venkat - 01-15-2017, 10:27 PM
RE: Model concept question - by meSmashsta - 01-15-2017, 10:40 PM
RE: Model concept question - by venkat - 01-16-2017, 12:40 AM
RE: Model concept question - by meSmashsta - 01-16-2017, 01:09 AM
RE: Model concept question - by venkat - 01-16-2017, 02:00 AM
RE: Model concept question - by meSmashsta - 01-16-2017, 02:20 AM
RE: Model concept question - by InsiteFX - 01-16-2017, 05:50 AM
RE: Model concept question - by Wouter60 - 01-16-2017, 09:04 AM
RE: Model concept question - by meSmashsta - 01-17-2017, 04:06 AM
RE: Model concept question - by InsiteFX - 01-17-2017, 04:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB