Symfony 2.8 Introduces the Range Form Element

The range form element is now available in Symfony 2.8. The range element is part of the HTML5 specification. In modern browsers, the range element is rendered as a slider. You can use it like this. $builder->add(‘volume’, ‘Symfony\Component\Form\Extension\Core\Type\RangeType’, [ ‘attr’ => [‘min’ => 0, ‘max’ => 11] ]); These go to eleven.

Google Fonts Generates Invalid HTML

So if you go to Google Fonts and pick a couple of funky fonts for your next super funky web app, you might get something that looks like this from Google. <link href=’|Anton’ rel=’stylesheet’ type=’text/css’ /> That’s what Google tells you to use in your markup to access those fonts. It technically works, but if Google Fonts Generates Invalid HTML

Tutorial: HTML5 Local Storage

Until HTML5 came along, storing data on the client side was always a total hack. Now it is remarkably easy and it works consistently across all modern browsers. I’ll demonstrate how to do it by creating a dummy application for saving user preferences. I wrote this demo app as a Symfony bundle. You can download Tutorial: HTML5 Local Storage