基础/缺失类型包

此包旨在为 Symfony2 提供缺失的表单类型。

安装: 10

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2013-11-14 15:02 UTC

This package is not auto-updated.

Last update: 2024-09-28 16:15:21 UTC


README

此包旨在为 Symfony2 提供缺失的表单类型。

文档

目前,此包提供以下类型

- hidden_boolean: Keep boolean value in hidden field

安装

在您的 composer.json 中添加 SocleMissingTypeBundle

{
    "require": {
        "socle/missing-type-bundle": "dev-master"
    }
}

现在运行以下命令告诉 composer 下载该包

$ php composer.phar update
# OR
$ php composer.phar update socle/missing-type-bundle # to only update the bundle

在 kernel 中启用该包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Socle\Bundle\MissingTypeBundle\SocleMissingTypeBundle(),
    );
}