Welcome Guest, Not a member yet? Register   Sign In
Chicken and Egg Models Dont Load -- Begack!
#5

[eluser]TheFuzzy0ne[/eluser]
I think I know what your problem is.

When you load the first model, the _assign_libraries() is called, which assigns the variables from the CI Super Object. When you load a model from within within that model, the model is loaded, and _assign_libraries creates a variable in the CI Super Object which is imported into the second model (via _assign_libraries), so you can access the first model. However, the first model doesn't have a reference to the second model, that's just been loaded. You'd have to call _assign_libraries a second time in the first model to have access to the second model. Hope this makes sense.

So in a nutshell, you have to call the second model via the CI Super Object if you don't call _assign_libraries a second time.

EDIT: Nuts! I just realise that this was Colin's point... Sad


Messages In This Thread
Chicken and Egg Models Dont Load -- Begack! - by El Forum - 03-06-2009, 03:08 PM
Chicken and Egg Models Dont Load -- Begack! - by El Forum - 03-06-2009, 03:27 PM
Chicken and Egg Models Dont Load -- Begack! - by El Forum - 03-06-2009, 05:09 PM
Chicken and Egg Models Dont Load -- Begack! - by El Forum - 03-06-2009, 06:37 PM
Chicken and Egg Models Dont Load -- Begack! - by El Forum - 03-09-2009, 01:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB