项目作者: wearejust

项目描述 :
Add extra functionality to Symfony Form
高级语言: PHP
项目地址: git://github.com/wearejust/form-bundle.git
创建时间: 2017-08-09T21:00:58Z
项目社区:https://github.com/wearejust/form-bundle

开源协议:

下载


wearejust/form-bundle

This package adds extra functionality to Symfony Form

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

  1. $ composer require wearejust/form-bundle "~0.1"

This command requires you to have Composer installed globally, as explained
in the installation chapter
of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php file of your project:

  1. <?php
  2. // app/AppKernel.php
  3. // ...
  4. class AppKernel extends Kernel
  5. {
  6. public function registerBundles()
  7. {
  8. $bundles = array(
  9. // ...
  10. new Wearejust\FormBundle\WearejustFormBundle(),
  11. );
  12. // ...
  13. }
  14. // ...
  15. }

Step 3: Configure (optional/reference)

  1. // config.yml
  2. wearejust_form:
  3. form:
  4. theme: WearejustFormBundle:Form:fields.html.twig
  5. bundles:
  6. prestaimage: true // Defaults to true use PrestaImageBundle (see suggests in composer.json)
  7. libraries:
  8. switchery: true
  1. // routing.yml
  2. wearejust_form:
  3. resource: .
  4. type: wearejust_form

Step 3: Usage