Same function in different model |
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! |
Messages In This Thread |
Same function in different model - by bilasdandapat - 07-01-2017, 12:50 AM
RE: Same function in different model - by InsiteFX - 07-01-2017, 02:54 AM
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
RE: Same function in different model - by bilasdandapat - 07-02-2017, 08:25 AM
|