Welcome Guest, Not a member yet? Register   Sign In
models within models
#4

[eluser]esra[/eluser]
I'm working from my laptop away from home tonight without a host and could not try this, but you might try a couple of experiments.

Experiment 1) Try placing two model classes in the same model file, load the model in a controller like normal, then try to access both models.

-----------
Experiment 2) Extend one model from another. In the extended model's constructor, set the parent to the Model class rather than the parent class. Then try to access both models.


Messages In This Thread
models within models - by El Forum - 12-05-2007, 11:08 PM
models within models - by El Forum - 12-05-2007, 11:59 PM
models within models - by El Forum - 12-06-2007, 01:52 AM
models within models - by El Forum - 12-06-2007, 06:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB