evercodelab / evercode-page-bundle
该包已被废弃且不再维护。没有推荐替代包。
用于处理页面的简单Symfony2 Bundle
dev-master
2014-03-13 13:39 UTC
Suggests
- doctrine/doctrine-fixtures-bundle: to enable fixtures functionality
This package is not auto-updated.
Last update: 2018-06-29 09:40:58 UTC
README
简单的Symfony2 Bundle,用于处理静态页面。
安装
本手册假定您已经在symfony安装和包管理中使用composer。
如果没有,您真的应该使用它。不过,使用deps
文件或git submodule
安装Bundle也不会有问题。
步骤 1. 将Bundle添加到您的composer.json
文件中
{
"require": {
"evercodelab/evercode-page-bundle" : "dev-master"
}
}
步骤 2. 在您的app/AppKernel.php
中注册Bundle
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Evercode\Bundle\PageBundle\EvercodePageBundle(),
);
// ...
}
步骤 3. 在app/config.routing.yml
中注册Bundle的路由
EvercodePageBundle:
resource: "@EvercodePageBundle/Controller/"
type: annotation
prefix: /
步骤 4. 更新您的数据库模式以映射您的新Page实体。
$ php app/console doctrine:schema:update --force