Posts Tagged ‘mvc’

How to build an admin section in ColdFusion on Wheels

Tuesday, November 23rd, 2010

Every now and then, someone asks how to build an admin section into their ColdFusion on Wheels application. If they want for it to be in an admin folder, does that mean that you can only have an admin controller that stores everything needed?

Fortunately, one approach allows for you to split your admin section up into as many controllers as you need using inheritance and a feature called routes. Let’s discuss how.

Read the rest of this entry »

404 error handling in ColdFusion on Wheels

Tuesday, March 30th, 2010

This is fairly simple, but I figured that I would share my approach for 404 error pages in ColdFusion on Wheels and see if anyone has a different/better way of doing it. This example demonstrates code used on cfwheels.org.

Read on to learn more.

Read the rest of this entry »

Script-based controllers and models, tag-based views

Thursday, October 22nd, 2009

I’m looking forward to playing around with ColdFusion 9 when I get some more time here in a month or so. One of the areas that interests me in particular is the ability to write full CFCs in CFScript syntax.

Read on for what I feel is the perfect blend of CFML features used in the different layers of the ColdFusion on Wheels framework:

  • Controllers in script syntax
  • Models in script syntax
  • Views in tag syntax

Read the rest of this entry »

Improving the tutorial: using the same view for multiple actions in ColdFusion on Wheels

Thursday, August 20th, 2009

I’ll fulfill my promise by giving another example of how I would improve the Hello Database tutorial for ColdFusion on Wheels.

This time, I’ll talk about how we could factor out view logic so that the profile form can be used for both the add and edit actions. With all of this MVC goodness, we should be able to do some refactoring easily, shouldn’t we?

Read the rest of this entry »