News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Bertrand Mansion's Blog:
Twitter Bootstrap and the QuickForm2 Callback Renderer
September 26, 2011 @ 12:23:41

In a new post Bertrand Mansion shows how he combined the versatility of the PEAR QuickForm2 package and the Bootstrap project from Twitter to quickly make a form using the project's styling (CSS).

I don't know about you, but for me building HTML Forms and styling HTML Forms are maybe the most boring things in web development. It's repetitive and takes a lot of time to do things correctly. That's why tools like Twitter's Bootstrap and PEAR's HTML_QuickForm2 can help with this part of our job. Wouldn't it be nice to have QuickForm2 generate a markup compatible with Bootstrap CSS, so that you could get a nice looking form without to much efforts? Well, that's what I plan to do here.

He starts by creating a simple QuickForm2 form with no renderers attached (no pre-defined styles) and a custom render callback that wraps the items in "div" tags with the correct styles. There's also a custom renderer included for grouping items with additional styling attached.

0 comments voice your opinion now!
twitter bootstrap pear quickform2 callback style render css


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm

Greg Beaver's Blog: Chiara_PEAR_Server 0.18.7 released - a must-upgrade!

Site News: Come Follow Us! (on Twitter)

Christopher Kunz\'s Blog: How to increase PEAR security (and give admins a fuzzy feeling)

Pierre\'s Blog: Syntax highlighter in PHP


Community Events





Don't see your event here?
Let us know!


release opinion language symfony composer interview framework voicesoftheelephpant version security series community introduction podcast update package tool mvc library laravel

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework