When I try do so I get: 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...
Here is my index:
require_once "Zend/Loader.php";
Zend_Loader::registerAutoload('My_Loader');
and here is my Loader:
class My_Loader extends Zend_Loader
{
public static function loadClass($class, $dirs = null)
{
parent::loadClass($class, $dirs);
}
public static function autoload($class)
{
try {
if ('ezcBase' == $class)
{
require_once 'eZ/Base/src/base.php';
}
elseif ('ezc' == substr($class, 0, 3))
{
ezcBase::autoload($class);
}
else
{
self::loadClass($class);
}
//self::loadClass($class);
return $class;
} catch (Exception $e) {
return false;
}
}
}
I`m just not sure if I get any next notices like this.
Thanks for any info.
--
View this message in context: http://www.nabble.com/My_Zend_Loader-in-ZF1.8-tp23595652p23595652.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论