2012-09-30 88 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?

回答