mdespeuilles / markupfieldbundle
Markup form field Bundle
Installs: 79
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
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 !' ]); // ... }