robmasters/genemu-sandbox-bundle

此包提供用于测试 GenemuFormBundle 类型的一个沙盒

安装: 3

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

语言:JavaScript

类型:symfony-bundle

dev-master 2012-10-18 16:55 UTC

This package is not auto-updated.

Last update: 2024-09-14 13:20:28 UTC


README

本包提供了一个沙盒,展示如何使用由GenemuFormBundle提供的各种表单类型。

安装

步骤 1:安装包

将以下依赖项添加到您的 composer.json 文件中

{
    "require": {
        "_some_packages": "...",

        "robmasters/genemu-sandbox-bundle": "2.1.*"
    }
}

步骤 2:导入路由

app/config/routing.yml 中包含包的路由

rjm_genemu_sandbox:
    resource: "@RJMGenemuSandboxBundle/Resources/config/routing.yml"
    prefix:   /

步骤 3:启用包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new RJM\Bundle\GenemuSandboxBundle\RJMGenemuSandboxBundle(),
    );
}

步骤 4:初始化资源

$ php app/console assets:install web