PropelBundle.php第29行中的FatalErrorException:编译错误:Propel \ PropelBundle \ PropelBundle :: boot():需要打开失败

时间:2015-09-06 16:55:38

标签: propel symfony-2.7 propel2

我试图使用推进ORM和sympfony v-2.7

在我的作曲家中,我添加了这一行

  

“推进/推进捆绑”:“^ 1.4”,

并成功安装此软件包。

然后我使用这个

将Bundle加载到我的karnel中
$bundles = array(

    new Propel\PropelBundle\PropelBundle(),

        );

我的config.yml设置

propel:
path:       "%kernel.root_dir%/../vendor/propel"
phing_path: "%kernel.root_dir%/../vendor/phing"
logging:    %kernel.debug%
dbal:
    driver:               %database_driver%
    user:                 %database_user%
    password:             %database_password%
    dsn:                  %database_driver%:host=%database_host%;dbname=%database_name%;charset=UTF8
    options:              {}
    attributes:           {}

但是当我尝试访问时 - http://localhost/my-serp/web/ 我收到了这个错误

FatalErrorException in PropelBundle.php line 29:
Compile Error: Propel\PropelBundle\PropelBundle::boot(): Failed opening required 'D:\wamp\www\my-serp

\app/../vendor/propel/runtime/lib/Propel.php' (include_path='D:\wamp\www\my- serp\vendor/phing/phing/classes;D:\wamp

\www\my-serp\vendor/propel/propel1/runtime/lib;D:\wamp\www\my-     serp\vendor/propel/propel1/generator/lib;.;C:\php\pear')


in PropelBundle.php line 29
at PropelBundle->boot() in bootstrap.php.cache line 2414
at Kernel->boot() in bootstrap.php.cache line 2442
at Kernel->handle() in app_dev.php line 28
at {main}() in app_dev.php line 0

我按照github的文档,有人能说我错过了吗?

1 个答案:

答案 0 :(得分:0)

检查/更改您的推进路径:

path:       "%kernel.root_dir%/../vendor/propel/propel1"