Download the PHP package binaryspanner/quickforms without Composer
On this page you can find all versions of the php package binaryspanner/quickforms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download binaryspanner/quickforms
More information about binaryspanner/quickforms
Files in binaryspanner/quickforms
Package quickforms
Short Description A Symfony bundle to allow the creation of forms from YML files.
License MIT
Informations about the package quickforms
Quick Forms
A Symfony bundle to allow the creation of forms from YML files.
Installation
The bundle can be installed using Composer:
composer require binaryspanner/quickforms
Use
First the bundle needs registered in the Symfony app's kernel:
When using the default settings the bundle will search for form files in Resources/forms
in
the kernel's root directory (normally "path-to-Symfony-project"/app/
).
To load form files the filenames have to be added to the bundle's settings in config.yml
:
An example form file can be found in the bundle's Resources/forms
directory.
This form file will be loaded by default when the bundle's file_names
property is unset in
config.yml
.
The directories the bundle searches in can be changed by modifying the root_paths
and/or
directory_paths
bundle settings in config.yml
:
Note that absolute paths can be used in the directory_paths
setting.
Once the form layout files have been setup a view template needs to be created - if you're using Twig you can create Symfony forms as normal:
Finally the views need to be loaded in the controller:
All versions of quickforms with dependencies
symfony/form Version ^3.2
symfony/http-kernel Version ^3.2
symfony/dependency-injection Version ^3.2
symfony/config Version ^3.2
symfony/filesystem Version ^3.2
symfony/yaml Version ^3.2