registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0
Posted on June 18, 2009 with 2 Comments
On a new Zend Framework project created with Zend Studio, accessing the public folder, git following error
Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /usr/local/zend/share/ZendFramework/library/Zend/Loader.php on line 207
This was fixed by editing Initializer.php
Find
require_once "Zend/Loader.php";
Replace with
require_once 'Zend/Loader/Autoloader.php';
Find
Zend_Loader::registerAutoload();
Replace with
$loader = Zend_Loader_Autoloader::getInstance(); $loader->registerNamespace('App_');
Tags: zend framework, zend studio, zend studio 1.8
Category: PHP