Welcome Guest, Not a member yet? Register   Sign In
Using Zend Framework components in CI
#12

[eluser]Phil Sturgeon[/eluser]
Excellent, loadClass() does what I was looking for. Might not be possible in raw PHP but their loader class allows you to pass the constructor an array of parameters.

Code:
Zend_Loader::loadClass('Container_Tree',
    array(
        '/home/production/mylib',
        '/home/production/myapp'
    )
);

This can easily be added to CI loader. Should it be $this->load->zend(? Not sure of the best implementation.

Also, not sure we need to use Zend Loader, we can do some basic checks and exception handling in the CI loader class.


Messages In This Thread
Using Zend Framework components in CI - by El Forum - 12-12-2008, 04:01 AM
Using Zend Framework components in CI - by El Forum - 12-12-2008, 04:10 AM
Using Zend Framework components in CI - by El Forum - 12-12-2008, 06:28 AM
Using Zend Framework components in CI - by El Forum - 12-12-2008, 06:37 AM
Using Zend Framework components in CI - by El Forum - 12-12-2008, 06:46 AM
Using Zend Framework components in CI - by El Forum - 12-12-2008, 07:57 AM
Using Zend Framework components in CI - by El Forum - 12-12-2008, 08:14 AM
Using Zend Framework components in CI - by El Forum - 12-13-2008, 11:17 PM
Using Zend Framework components in CI - by El Forum - 12-14-2008, 04:10 PM
Using Zend Framework components in CI - by El Forum - 12-15-2008, 02:59 AM
Using Zend Framework components in CI - by El Forum - 12-15-2008, 02:59 AM
Using Zend Framework components in CI - by El Forum - 12-15-2008, 04:31 AM
Using Zend Framework components in CI - by El Forum - 12-15-2008, 06:28 AM
Using Zend Framework components in CI - by El Forum - 12-15-2008, 08:14 AM
Using Zend Framework components in CI - by El Forum - 12-15-2008, 09:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB