Welcome Guest, Not a member yet? Register   Sign In
Can you load models within models?
#2

[eluser]jleequeen[/eluser]
I've read a couple posts related to loading models within models. I understand that the only way to do it is to use the CI super object. I do understand why you probably should find a way to keep from having to load models inside of models. What I'm trying to do, and the reason I'm even having this problem is the following.

I have a table called "a" and a table called "b" that each have a model. Obviously in each of those models I have functions that access the data respectively. But I also need to do some calculations that involve data from both tables, so I've created a new model called calculations that basically just needs access to some functions in each of the other models to complete calculations.

How do I manage this type of thing? Is this where I would need to create a library instead of a model? In a way that would make sense. Am I on the right track?


Messages In This Thread
Can you load models within models? - by El Forum - 06-27-2008, 04:39 PM
Can you load models within models? - by El Forum - 06-27-2008, 06:29 PM
Can you load models within models? - by El Forum - 06-27-2008, 08:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB