symfony2 form type
TRANSCRIPT
Symfony2 FormType
FormType StructureUser from (FormType)
Name field (Text FormType)
Image field (File FormType)
Birthday field (Date FormType)
Preview (Image FormTypeExtension)
FormType StructureUser 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: Rimoto\SubscriberBundle\Form\Type\GeolocationType
tags:
- { name: form.type, alias: geolocation }
services:
rimoto.form.type.image_preview:
class: Rimoto\SubscriberBundle\Form\Type\ImagePreviewTypeExtension
tags:
- { name: form.type_extension, alias: file }
Data Transformers
FormType[lat, long]
FormType[GeoPoint]
Represent mode Original data mode
transfrom
reverseTransfrom
References1. http://symfony.com/doc/current/reference/forms/types.html2. http://symfony.com/doc/current/cookbook/form/create_custom_field_type.h
tml3. http://symfony.com/doc/current/cookbook/form/create_form_type_extensio
n.html4. https://github.com/genemu/GenemuFormBundle