我正在尝试将推进 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 上的文档,有人能告诉我我错过了什么吗?