Tuesday, June 30, 2009

Zend Framework: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader

While upgrading your version may cause the above warning.

To get rid of it replace the following code

require_once “Zend/Loader.php”;

Zend_Loader::registerAutoload();

With the following one.

require_once “Zend/Loader/Autoloader.php”;

$autoloader = Zend_Loader_Autoloader::getInstance();

Cheers

4 comments: