What does this ColdFusion developer do in his spare time? If you answered ‘write a custom MVC framework in two hours’ then you answered correctly. Initially I hesitated to share this, as it is nowhere close to finished (and probably never will be). But I decided to throw caution to the wind and offer it up for ridicule and scrutiny. Here’s a list of what I was able to accomplish in two hours…
- Create a spiffy directory structure
- Add model, view and controller logic
- integrate jquery, datatables.net and bootstrap (although I do get a warning when datatables loads)
- Create a controller layer that allows for persistant variables when forwarding to one action to the next (like the flash scope in Grails)
If I were to spend any more time on this project I would explore
- Moving the controller layer to cfcs
- Switching from a [url]?action=section.action convention to a [url]/section/ation/ convention
- Integrate ColdFusion’s built-in ORM goodness to the model
- Actually make the sample application to work (adding CRUD features for the ‘widget’ entity)
- Switching out the awesome Bootstrap front-end framework for the even more awesome Foundation front-end framework
If you are looking for a good ColdFusion framework I insist that you look elsewhere. ColdBox, CFWheels, FW/1 and Model Glue are all really good.
Without further rambling I present the 0.2 release of Widgets Ahoy!