0
votes

In the new version of ZF, we must use:

require_once 'Zend/Loader/Autoloader.php'; Zend_Loader_Autoloader::getInstance();

insted of:

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

But the models, aren't working anymore :(.I'm getting the following error:

Fatal error: Class 'Launch' not found in C:\wamp\www....

If I don't remove the line:

Zend_Loader::registerAutoload();

I'm getting a notice:

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 C:\wamp\www.....

And I have set the include path for the models, my current setup works fine with 1.7

Best Regards,

2

2 Answers

1
votes
0
votes

$autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->setFallbackAutoloader(true);

works!