<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 21:49:11 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Bertrand Mansion's Blog: Twitter Bootstrap and the QuickForm2 Callback Renderer]]></title>
      <guid>http://www.phpdeveloper.org/news/16908</guid>
      <link>http://www.phpdeveloper.org/news/16908</link>
      <description><![CDATA[<p>
In a new post <i>Bertrand Mansion</i> shows <a href="http://mansion.im/2011/twitter-bootstrap-and-the-quickform2-callback-renderer/">how he combined</a> the versatility of the PEAR <a href="http://pear.php.net/package/HTML_QuickForm2">QuickForm2</a> package and the <a href="http://twitter.github.com/bootstrap/">Bootstrap project</a> from Twitter to quickly make a form using the project's styling (CSS).
</p>
<blockquote>
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.
</blockquote>
<p>
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.
</p>]]></description>
      <pubDate>Mon, 26 Sep 2011 12:23:41 -0500</pubDate>
    </item>
  </channel>
</rss>
