Welcome Guest, Not a member yet? Register   Sign In
Is it possible to extend your own libraries/helpers...etc.
#3

[eluser]CMCDragonkai[/eluser]
That's a very simple solution. Thanks.

I suppose the extending would be the same as extending CI's libraries.

Code:
class Baseextended extends Base {

}

Furthermore is it possible to extend a branch which extends the base? How deep can the extensions go?
If so, how would one load them?

Also, I'm reading there are problems involving loading of models in models and loading of libraries in models.

How would one load a model in a model?

I read that loading a library in the constructor of a model requires the use of
$this->_assign_libraries();
immediately after.
However this only works if the code is placed after parent::

Is it also possible to extend models? Does the autoload work for them?

Why isn't this in the userguide?


Messages In This Thread
Is it possible to extend your own libraries/helpers...etc. - by El Forum - 12-02-2010, 07:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB