-- J DeBord <[email protected]> wrote
(on Saturday, 02 May 2009, 11:32 AM +0200):
> To make Zend_Loader_Autoloader match the functionality of this:
>
> require_once "Zend/Loader.php";
> Zend_Loader::registerAutoload();
>
> Would you do this? :
>
> require_once 'Zend/Loader/Autoloader.php';
> $autoloader = Zend_Loader_Autoloader::getInstance();
> $autoloader->setFallbackAutoloader(true);
Yes, though the last line can be omitted if you're not using any
libraries outside of Zend_ or ZendX_ trees. Or, if you know the exact
namespaces of any other libraries, register them:
$autoloader->registerNamespace(array('Foo_', 'Bar_'));
--
Matthew Weier O'Phinney
Project Lead | [email protected]
Zend Framework | http://framework.zend.com/