Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Extending Symfony2 Web Application Framework

You're reading from   Extending Symfony2 Web Application Framework Symfony2 took the great features of the original framework to new levels of extensibility. With this practical guide you'll learn how to make the most of Symfony2 through controlling your code and sharing it more widely.

Arrow left icon
Product type Paperback
Published in Mar 2014
Publisher
ISBN-13 9781783287192
Length 140 pages
Edition Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sebastien Armand Sebastien Armand
Author Profile Icon Sebastien Armand
Sebastien Armand
Arrow right icon
View More author details
Toc

Chapter 3. Forms

Symfony ships with a powerful form component. Building forms based on your classes, keeping the data in sync between a form and an object or any data structure, is a complicated topic. There are a few abstractions to understand how the form component works in order to enable its full power and make complete use of it.

One of the good things about it is that almost everything, once defined, is easily reusable. In the previous chapters, we were building a website that allows users to publish or join meetups. We stated at the outset that we wanted to show users only those meetups that are happening with a certain distance from them. For this, we had to know the actual location of each meetup and user. For users, we relied on their IP address, but for meetups, we should probably let the organizer define the exact address—maybe even on a map. There is no map input predefined in the form framework, so we will define one. It should be easy enough to reuse the same input in the user...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image