Coldbox, another great solution?

I don’t know why but I never really gave Coldbox a chance when it came out. That was still around the time before I started blogging or just investigating for fun, so I never read up on it the way of some other recent frameworks. Taking a look at it now on Luiz Majano’s blog it’s a very mature framework approaching it’s 2.0 mark extracted from a real world application where many of it’s would-be problems were addressed. I think Mike O’Neil describes it best:

I love Model-Glue. Model-glue is the sweet little blonde from around the corner that you introduce to the parents; ColdBox is the hot brunette that is paying her way through grad school by dancing at the upscale gentleman’s club.

So what’s different about it from Model-Glue, Mach-II and Fusebox? One of the major advantages at first glance (to me at least) is the way it routes page requests. It uses the same type of URLs as the big three, using index.cfm?event=home.main style to display links, but instead of describing the home.main event in XML, it’s directly accessed in a CFC. This was one of the things I liked about CF On Wheels as well. For instance, that home.main event when it comes in, it’ll look in your handlers folder off your root for a file called “home.cfc”, and call a method, “main” on it. In that function is where your single event driven code would go. This event has a requestContext variable available similar to the way model glue and machii has where you can manipulate form and url variables through, as well as declare values for your view to use.

There’s really a lot to this framework, although the installation of a empty project is a mere 5 files. Taking a look at the single configuration file for the framework offers more insight to the framework than anything I could say without investigating more, or just listing features, so take a look and see what you think. I’ll be investigating this one more myself as well.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments
Hi,

I am sure you will love more on more investigation, coldbox is great powerful dev tool, and most importantly its so easy for CF guys, anyone who has been involved in CFC can do dev in coldbox. There are plenty of features which just need to read the guide then you are on dev track.
There is couple of new feature coming within a few days
RaiseEvent [I would suggest to read this http://ortus.svnrepository.com/coldbox/trac.cgi/ticket/63

would you post coldbox investigation, that definately will help for new coldbox adopters

Thanks

Spot on report, Adam. Keep spreading the ColdBox gospel, my brother. I’ll have the first couple of steps on setting up and creating a ColdBox app from scratch by the end of the weekend. Cheers.
I’m a long-time CFML guy who for years has been whisked away into the world of PHP and am now thankfully returning to CFML. Which of the existing frameworks offers clean URLs, such as what you’ve got with your blog, e.g. no .cfm reference or ? in the URL. Does such a framework exist?
@Sana
Powerful but deceptively simple that’s for sure. I’m impressed at the wealth of info on the wiki too, lots to learn!

@Michael
Thanks, and looking forward to some Coldbox lessons when you stop teasing people. :P

@Geof
Welcome back. :) Hopefully not too terribly much has changed since you left. As far as SES URLs go, it’s accomplished here just by using Wordpress which uses .htaccess for URL rewriting (i believe). It’s very easy to enable in wordpress.

As far as SES URLs in Coldfusion frameworks, the only one I know of that supports it as part of the framework is Coldfusion on Wheels, which is a Rails-like framework currently at v0.6. They’re making some great strides but freely admit it’s not to v1.0 yet and should probably not be used for a production site, as many changes are probably right around the corner. Your timing is pretty funny actually, because I’m going to making a post about SES URLs in CF later today. :)

Adam, after four years of managing a development team who only coded in PHP, I’m now heading up my own business, and happy to be back in the saddle with CFML, doing things as I want to do them.

Thanks for the new post. I’ll be sure to give it a read.

Adam,

This is a great intro post. As you will find out, ColdBox has more to offer than just a framework. So if there is any questions I can answer for you and your readers, please let me know. I am a big fan of documentation and there is over 100 pages of documentation available since yesterday and it will keep increasing. I also hope to start linking to more tutorials like Michael’s!! Great Tutorials by the way.

Hope you enjoy the framework and please let me know how I can help.

Thanks for sharing this fabulous article. Although I dont have much experience with Coldbox Im going to look into more from now on after reading this.
Leave a comment

(required)

(required)