KEMBAR78
Symfony2 form type | PDF
Symfony2 FormType
FormType Structure
User from (FormType)
Name field (Text FormType)
Image field (File FormType)
Birthday field (Date FormType)
Preview (Image FormTypeExtension)
FormType Structure
User from (FormType)
Name field (Text FormType)
Image field (File FormType)
Birthday field (Date FormType)
Preview (Image FormTypeExtension)
Tagged service
Options
BuildForm
Template
BuildView
Extended ParentName
services:
rimoto.form.type.geolocation:
class: RimotoSubscriberBundleFormTypeGeolocationType
tags:
- { name: form.type, alias: geolocation }
services:
rimoto.form.type.image_preview:
class: RimotoSubscriberBundleFormTypeImagePreviewTypeExtension
tags:
- { name: form.type_extension, alias: file }
Data Transformers
FormType
[lat, long]
FormType
[GeoPoint]
Represent mode Original data mode
transfrom
reverseTransfrom
References
1. http://symfony.com/doc/current/reference/forms/types.html
2. http://symfony.com/doc/current/cookbook/form/create_custom_field_type.h
tml
3. http://symfony.com/doc/current/cookbook/form/create_form_type_extensio
n.html
4. https://github.com/genemu/GenemuFormBundle

Symfony2 form type