mdespeuilles/markupfieldbundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Markup form field Bundle

1.0.1 2017-04-01 09:28 UTC

This package is not auto-updated.

Last update: 2023-11-25 23:39:16 UTC


README

SensioLabsInsight

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 !'
    ]);
    // ...
}