基础 / 缺失类型包
此包旨在为 Symfony2 提供缺失的表单类型。
dev-master
2013-11-14 15:02 UTC
Requires
- php: >=5.3.4
- symfony/framework-bundle: ~2.1
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(), ); }