Welcome Guest, Not a member yet? Register   Sign In
Using Model inside another model
#11

[eluser]TheFuzzy0ne[/eluser]
To re-enforce what wiredesignz was saying - You'd be much better off just using require_once to include the class, and then instantiating them individually as you've done so above. The CodeIgniter loader has been designed to load only single instance objects, and so instantiates your model within the scope of the CodeIgniter super object, which in this case, isn't very useful to you.




Theme © iAndrew 2016 - Forum software by © MyBB