Steven Brown

Upgrading autoloaders from Zend Framework 1.7 or less to 1.8

by on Jun.15, 2009, under Zend Framework

In versions of Zend Framework prior to 1.8 you could set Zend_Loader as the autoloader using the following:

include 'Zend/Loader.php';
Zend_Loader::registerAutoload();

As of 1.8 this will produce a deprecation warning, the easiest replacement is this:

include 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!