evercodelab/evercode-page-bundle

该包已被废弃且不再维护。没有推荐替代包。

用于处理页面的简单Symfony2 Bundle

安装: 946

依赖: 0

推荐者: 0

安全: 0

星标: 2

关注者: 16

分支: 0

开放问题: 3

类型:symfony-bundle

dev-master 2014-03-13 13:39 UTC

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