收录日期:2020/12/02 11:47:22 时间:2013-11-30 12:20:23 标签:zend-framework

I am trying to setup the Zend Framework on a windows machine and I get this error:

Fatal error: Class 'Zend_Application_Bootstrap_BootstrapAbstract' not found in C:\wwwroot \projects\relaunch\library\Zend\Application\Bootstrap\Bootstrap.php on line 36

My include path is:

C:\wwwroot\projects\relaunch\library;.;C:\php\pear;c:\php\includes

It sounds like your autoloader is not working. Does your autoloader setup look like this?

require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('MyApp_');
$autoloader->setFallbackAutoloader(true);

I imagine your bootstrap specifically includes the Zend\Application\Bootstrap\Bootstrap.php file, but then things trip up on the autoload of the parent class. (Zend_Application_Bootstrap_Bootstrap doesn't specifically include its parent, which is unusual, but usually easily handled by autoloader.)