bukashk0zzz/timestamptype-bundle
最新稳定版本:v2.4.2
Composer 安装命令:
composer require bukashk0zzz/timestamptype-bundle
包简介
A simple Symfony bundle that adds timestamp form field type.
README 文档
README
About
A simple Symfony bundle that adds timestamp form field type.
Installation
Add this to your composer.json file:
"require": { "bukashk0zzz/timestamptype-bundle": "^2.0", }
Add the bundle to app/AppKernel.php
$bundles = array( // ... other bundles new Bukashk0zzz\TimestampTypeBundle\Bukashk0zzzTimestampTypeBundle(), );
Configuration
Not needed.
Usage
Inside a FormType:
class AccountProfileType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('nameFirst', TextType::class, ['label' => 'First Name']) ->add('nameLast', TextType::class, ['label' => 'Last Name']) ->add('startWorking', TimestampType::class, [ 'label' => 'Start working from', 'required' => false, ]) ; } }
Copyright / License
See LICENSE
统计信息
- 总下载量: 53.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-12