Welcome Guest, Not a member yet? Register   Sign In
Using 3 Party Libraries
#1

[eluser]Unknown[/eluser]
Hello everybody,

I need to implement with 3 party libraries (e.g. pdf libs) in codeigniter.
When i instantiate a sub class with parameters with the folowing construct
Code:
$myInst = new MySubClass($param1, $param2)
an error withhin Loader.php calss occurs.
Is it only possible to instantiate a class like this
Code:
$this->myInst->load->library('mySubClass, $byte_order);
and pass parameters as an array? So i must modify each constructor on 3 party libs.

An other question is, if i extend a sub calss from an other sub class, then the super class will instantiated by the framework or must i load it manually?

What is the best practices to handle with 3 party libraries, instantiate sub classes and with inheritance.

Thanks


Messages In This Thread
Using 3 Party Libraries - by El Forum - 10-08-2009, 02:36 AM
Using 3 Party Libraries - by El Forum - 10-08-2009, 09:06 AM
Using 3 Party Libraries - by El Forum - 10-08-2009, 04:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB