Welcome Guest, Not a member yet? Register   Sign In
using libraries in models
#2

[eluser]gtech[/eluser]
you can load a model in a model, so you can have a common model if thats what you are after. You can achieve this by loading the 'common' model in the every models constructor that uses the common model, this means it being available in every function.

Or you can get the CI instance in a function and load the model through the CI instance object (there are examples of this in the forum).

you may be also able to extend the common model in the class definition (I must admit I have not tried this approach though).


Messages In This Thread
using libraries in models - by El Forum - 05-29-2008, 01:47 PM
using libraries in models - by El Forum - 05-29-2008, 01:52 PM
using libraries in models - by El Forum - 05-29-2008, 02:16 PM
using libraries in models - by El Forum - 05-29-2008, 07:02 PM
using libraries in models - by El Forum - 05-29-2008, 07:54 PM
using libraries in models - by El Forum - 05-29-2008, 08:08 PM
using libraries in models - by El Forum - 05-29-2008, 08:14 PM
using libraries in models - by El Forum - 05-30-2008, 11:18 AM
using libraries in models - by El Forum - 05-30-2008, 11:34 AM
using libraries in models - by El Forum - 06-02-2008, 07:42 AM
using libraries in models - by El Forum - 06-02-2008, 03:30 PM
using libraries in models - by El Forum - 06-02-2008, 10:35 PM
using libraries in models - by El Forum - 06-03-2008, 01:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB