mindfire/expiryfieldbundle
Composer 安装命令:
composer require mindfire/expiryfieldbundle
包简介
A Symfony2 Custom field type with month and year selectors which is useful for applications reading Expiry Month and Year inputs such as Credit Card Expiration
关键字:
README 文档
README
A Symfony2 Custom field type with month and year selectors which is useful for applications reading Expiry Month and Year inputs such as Credit Card Expiration.
Usage
In composer.json, add the repository and the bundle.
"require": {
"mindfire/expiryfieldbundle": "*"
}
Register the bundle in AppKernel.php
new Mindfire\Bundle\ExpiryFieldBundle\MindfireExpiryFieldBundle(),
Add the parameter to specify the object manager:(Default value is doctrine.orm.entity_manager)
expiry.object_manager_id: doctrine_mongodb.odm.document_manager
In your form type,
$builder->add('ccExpiration', 'expiry');
License
This bundle is available under the MIT license.
统计信息
- 总下载量: 462
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-04-01