2012-09-30 92 views
2

我试图在Symfony 2.1上安装PropelBundle分支1.1。我遵循手动安装的说明,但不知道在哪里注册命名空间。在Symfony 2.1上安装PropelBundle

现在我收到此错误信息:Fatal error: Class 'Propel\PropelBundle\PropelBundle' not found in D:\www-files\Symfony\app\AppKernel.php on line 22

第22行是这样的:new Propel\PropelBundle\PropelBundle()

而且我autoload.php看起来是这样的:

use Doctrine\Common\Annotations\AnnotationRegistry; 

$loader = require __DIR__.'/../vendor/autoload.php'; 

// intl 
if (!function_exists('intl_get_error_code')) { 
    require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php'; 

    $loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs'); 
} 

AnnotationRegistry::registerLoader(array($loader, 'loadClass')); 

return $loader; 

我要补充的东西自动加载.PHP?

回答