David Lukáš talks about Twitter Bootstrap Forms with Zend Framework 2

Over on ZF Daily, David Lukáš has posted his latest tutorial titled “TWITTER BOOTSTRAP FORMS WITH ZF2. EASILY“. This one deals with building forms with Twitter’s Bootstrap and Zend Framework 2. He does this via his Zend Framework 2 module, “DluTwBootstrap”.

It is at this point, I usually share a quote from the blog I am talking about. The problem is Davis spares precious few words on the WHAT and spends most of the article on the HOW. There are bullit lists of instructions, warnings and some excellent screen shots to help you get a feel for what you are building. There’s also not a lot of code samples, but the instructions should get you going and allow you to start playing with your own ideas.

I will share the one caveat that David put at the end. Don’t take this the wrong way, you still need to download his module and start playing with it now; but ti does come with a warning label.

All this in vain (sort of)

This is all very nice, but it won’t last! The ZF2 Form package is getting a major overhaul and some very basic concepts are going to change (e.g. we likely lose the decorators in favour of the view helpers). See the RFC – Forms to learn more. When the new Form package arrives in one of the future betas this module will need massive refactoring (and probably your form classes too). But until then we can easily generate nice looking Twitter Bootstrap forms using the DluTwBootstrap module.

If you’ve been looking for a way to integrate Bootstrap’s forms into your Zend Framework 2 application, look no further than this article. Make sure you drop David a comment telling him how much you like it.

About Cal Evans

Many moons ago, at the tender age of 14, Cal touched his first computer. (We're using the term "computer" loosely here, it was a TRS-80 Model 1) Since then his life has never been the same. He graduated from TRS-80s to Commodores and eventually to IBM PCs. For the past 10 years, Cal has worked with PHP and MySQL on Linux OSX, and when necessary, Windows. He has built on a variety of projects ranging in size from simple web pages to multi-million dollar web applications. When not banging his head on his monitor, attempting a blood sacrifice to get a particular piece of code working, he enjoys building and managing development teams using his widely imitated but never patented management style of "management by wandering around". Cal is happily married to wife 1.32, the lovely and talented Kathy. Together they have 2 kids who were both bright enough not to pursue a career in IT. Cal blogs at http://blog.calevans.com and is the founder and host of Nomad PHP