ColdBox URL Routing

ColdBox URL Routing will give you support for creating Search Engine Safe (SES) URLs, RESTful services, and overall URL routing your way. By convention URL routing will allow you to create URL's without using nasty parameter delimeters like ?event=this.that&m1=val.

// Old Style

You can have the same event URL but with a nicer routing interface:

// Routing Style

What is a route?

A route is a declared URL pattern that if matched it will translate such URL into either an event or a view to be dispatched with the appropriate variable assignments in the request collection.


    pattern = "/blog/:year-numeric{4}/:month?/:day?",
    handler = "blog",
    action  = "list"

Routing Benefits

There are several benefits that you will get by using our routing system:

  • Complete control of how URL's are built and maintained
  • Ability to create or build URLs' dynamically
  • Technology hiding
  • Greater application portability
  • URL's are more descriptive and easier to remember

results matching ""

    No results matching ""