2017 © Pedro Peláez
 

symfony-bundle form-bundle

Set of Symfony form types.

image

devmachine/form-bundle

Set of Symfony form types.

  • Friday, January 5, 2018
  • by lakiboy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,769 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 7 % Grown

The README.md

DevmachineFormBundle

Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight, (*1)

Symfony form extensions for Bootstrap date/datetime widgets, typeahead based autocomplete and other helpers., (*2)

Update 2017

In modern world of React, Angular and Vue there is no much point in solutions like this. Use your favourite front-end framework + Symfony API. However, you can still use this bundle if you want, see the demo for details., (*3)

Installation

Install this bundle using Composer. Add the following to your composer.json for Symfony 3.0+:, (*4)

{
    "require": {
        "devmachine/form-bundle": "~2.0"
    }
}

Register bundle in the kernel:, (*5)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...

        new Devmachine\Bundle\FormBundle\DevmachineFormBundle(),
    ];
}

Integration

To add Javascript support to the form with devmachine type(s) form_javascript twig block must be called., (*6)

{% extends 'AppBundle::layout.html.twig' %}

{% block content %}
    {{ form_start(form) }}
    {{ form_widget(form) }}
    {{ form_end(form) }}
{% endblock %}

{# Put this block in parent template somewhere at the bottom of page. #}
{% block javascripts %}
    {{ form_javascript(form) }}
{% endblock %}

The approach used is same as in famous GenemuFormBundle., (*7)

Note: it is safe to use both DevmachineFormBundle and GenemuFormBundle in one project., (*8)

Documentation

Topics:, (*9)

The Versions