QuackFuzed.com is the personal ColdFusion coding blog of Matt Quackenbush. It exists primarily as a place for the author to learn, and hopefully to assist others in learning and/or avoiding some of the same pitfalls and mistakes. (Quack certainly makes enough mistakes daily to make up for the entire ColdFusion community.)

Using Multi-Word-Actions in ColdBox 2.6

Posted on November 11, 2008 at 5:06 PM in ColdBox, ColdFusion

The other day Jason Durham posed a question to me:

How can I go about using multi-word actions, using hyphens as separators, in my ColdBox handlers?

After my initial "Why on earth would you want to do that?" response, Jason pointed out the SEO benefits of doing so, which makes perfect sense. (That's when I thought to myself, "Hmmm, why didn't I think of that?")

[Continue Reading]

Comments
(Comment Moderation is enabled. Your comment will not appear until approved.)

On 11/11/08 at 6:12 PM, Jason Durham said:

Thanks for your help Matt!

On 11/11/08 at 8:27 PM, Sana said:

@Matt great stuff, by the way coldbox routing system allow you map your URL to internal handler-method like this 'catalog/list-products -->catalog.ListProduct'
Again your solution is great as well.

On 11/11/08 at 8:30 PM, Matt Quackenbush said:

@ Sana- You are absolutely correct, and that was my first suggestion, but when I thought about it for a moment, I liked the onMissingAction() solution much better, since it is completely dynamic. If you map it via routes, then it would become cumbersome always having to modify your routes file. ;-)

On 11/11/08 at 9:05 PM, Sana said:

@Matt I forget to mention that why I like to have external URL seperate from internal names. As I am big fan of having more OO naming convention for all internal class /methods name, external URL could be different in future to meet the needs of SEO or etc. But internal system naming convention are more important for better understanding and the purpose of class/methods and implementation.

Its just a opinion and also I am happy with anything which works :)
CodeBassRadio

Latest Articles

Eventually something really brilliant and witty will appear right here.

Calendar

November 2008
S M T W T F S
« Oct   Dec »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

Subscribe

Enter a valid email address.

The Obligatory Wish List