[eluser]mihailt[/eluser]
To Canglan,
First of all, Zend_Loader is a part of the framework, so IMHO it's a better for your app to use it from a app design point of view.
Second, if you would check the manual a little bit more you would see that it has couple of methods.
The one we are using here is the loadClass - and it does not only include required file( via loadFile actually), but checks as well if the class exists. and if not it will throw an exception, so you have a possibility to do something about it should it fail.
And third and last for now, there is a possibility to assign autoload function to Zend_Loader, and free yourself from doing
Code:
$this->zend->load($classname);
before instantiation Zend classes you wish to work with.
Actually thinking about it, probably the better design solution would be removing this library, creating extended Zend_Loader class, and extending CI_Loader class to work with it.