A ColdFusion Page Controller

A hate to admit it, but ever since I stopped using Fusebox a few years ago, I have been without a controller. I had my view separated from my model, but no controller to be seen. In fact, I even questioned the need for a controller on most of my projects (while seeing how it could help on larger projects). I was all ready to write a "Do I need a Controller" blog entry.

And then...

[More]

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
So -- its' been about a year. Have page controllers been working out for you?
# Posted By Tony Garcia | 3/18/08 11:07 AM
Great!

It has actually been a year since I originally wrote this post so it is definitely time for a follow-up post. I will try to get that done soon.

In the meantime, I will say this:

I love page controllers! I still use them basically as I described in this entry. As I glance at the description now, I see that I should have explained it better which I will try to do soon.

The only thing that I have changed is that I use onMissingMethod on CF8 to create a sort-of dual inheritance for labor saving. I will try to cover that soon as well.
# Posted By Steve Bryant | 3/18/08 11:26 AM
Cool. While I do like the Coldbox front controller framework, I think it can be overkill for less complex projects and I'm kind of "shopping around" for a good methodology for those projects that will stay in the spirit of MVC. I've heard of page controllers before and when I did a search on page controllers in CF, your blog post came up. I'm looking forward your followup as well as hearing about your onmissingmethod technique.
# Posted By Tony Garcia | 3/18/08 1:28 PM
Hi,
I have posted a simple example on onMissingmethod here.

http://cf-examples.net/index.cfm/2008/8/25/onMissi...
# Posted By Ahamad | 8/25/08 7:51 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.