mdespeuilles / markupfieldbundle
This package is abandoned and no longer maintained.
No replacement package was suggested.
Markup form field Bundle
Package info
github.com/mdespeuilles/MarkupFieldBundle
Type:symfony-bundle
pkg:composer/mdespeuilles/markupfieldbundle
1.0.1
2017-04-01 09:28 UTC
Requires
- php: >=5.3.9
- symfony/form: ^2.8 || ^3.0
- symfony/framework-bundle: ^2.8 || ^3.0
This package is not auto-updated.
Last update: 2023-11-25 23:39:16 UTC
README
This bundle provides a markup form field for Symfony. This bundle is useful to create fake field wich contains text or HTML.
Installation
Installation
To install MarkupFieldBundle with Composer just type in your terminal:
php composer.phar require mdespeuilles/markupfieldbundle
Now update your AppKernel.php file, and
register the new bundle:
<?php // in AppKernel::registerBundles() $bundles = array( // ... new Mdespeuilles\MarkupFieldBundle\MdespeuillesMarkupFieldBundle(), // ... );
Usage
When creating a new form class add the following line to create the field:
<?php use Mdespeuilles\MarkupFieldBundle\Form\Type\MarkupType; public function buildForm(FormBuilder $builder, array $options) { // ... $builder->add('markup', MarkupType::class, [ 'markup' => 'hello word !' ]); // ... }