kisphp/form-extensions-bundle
Composer 安装命令:
composer require kisphp/form-extensions-bundle
包简介
Kisphp symfony form extension bundle
README 文档
README
Installation
composer require kisphp/form-extensions-bundle
To enable the bundle register it inside your kernel class app/AppKernel.php
<?php public function registerBundles() { // ... new \Kisphp\FormExtensionBundle\FormExtensionBundle(), // ... }
Register new template in app/config/config.yml:
twig: form_themes: - "bootstrap_3_horizontal_layout.html.twig" - "@FormExtension/Form/field_type_help.html.twig"
Usage
Add help option to form element:
->add('description', TextareaType::class, [ // ... 'help' => 'This is my help message', ])
You also may use translation for the message
统计信息
- 总下载量: 411
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-23