在PropelBundle.php行29:编译错误:PropelPropelBundlePropelBundle::



我正在尝试在symfony v-2.7中使用propel ORM

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

"推动/propel-bundle":"^ 1.4",

并成功安装此包。

然后我用这个

将Bundle加载到我的内核中
$bundles = array(
    new PropelPropelBundlePropelBundle(),
        );

我的配置。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: PropelPropelBundlePropelBundle::boot(): Failed opening required 'D:wampwwwmy-serp
app/../vendor/propel/runtime/lib/Propel.php' (include_path='D:wampwwwmy- serpvendor/phing/phing/classes;D:wamp
wwwmy-serpvendor/propel/propel1/runtime/lib;D:wampwwwmy-     serpvendor/propel/propel1/generator/lib;.;C:phppear')

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的文档,有人能告诉我我错过了什么吗??

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

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

相关内容

  • 没有找到相关文章

最新更新