Welcome Guest, Not a member yet? Register   Sign In
Same function in different model
#4

Hi,

Thanks for your reply guys!

I had a confusion about loading the models in controller. What I think is loading a model is just like including the script in normal php page.

So in my example, if I load both models M1 and M2, script length will be very high loading all the unnecessary functions which I do not want in my controller. Moving that function to M2 is also not possible because in other controller, A() is used from M1.

That's why I asked what is the optimised way of having the less script with quick execution of the codes (my actual concern). Or maybe, I am having the wrong idea about CI. Kindly elaborate to make me understand better.

Thanks!
Reply


Messages In This Thread
RE: Same function in different model - by PaulD - 07-01-2017, 05:04 AM
RE: Same function in different model - by bilasdandapat - 07-01-2017, 05:18 AM
RE: Same function in different model - by PaulD - 07-01-2017, 07:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB