trsteel/html-form-validation-bundle

Easily disable HTML5 validation errors.

1.1.4 2024-02-01 01:59 UTC

This package is auto-updated.

Last update: 2024-03-19 22:58:05 UTC


README

Easily disable HTML5 validation errors.

Add the following lines to the deps file:

[TrsteelHtmlFormValidationBundle]
    git=http://github.com/trsteel88/TrsteelHtmlFormValidationBundle.git
    target=/bundles/Trsteel/HtmlFormValidationBundle

Update your vendors by running:

$ php ./bin/vendors

Add the Trsteel namespace to your autoloader.

<?php
// app/autoload.php

$loader->registerNamespaces(array(
    'Trsteel' => __DIR__.'/../vendor/bundles',
    // your other namespaces
));

Add the bundle to the application kernel.

<?php
// app/AppKernel.php
    public function registerBundles()
    {
        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            // ...
            $bundles[] = new Trsteel\HtmlFormValidationBundle\TrsteelHtmlFormValidationBundle();
            // ...
        }
    }