Introduction to ColdCourse

download Introduction to ColdCourse

If you can't read please download the document

description

Presentation to Adogo on ColdCourse. You can also view the recording of this presentation.

Transcript of Introduction to ColdCourse

  • 1. SES URLs for ColdFusion with ColdCourse Adobe Developers of Greater Orlando adogo.us September 2007
      • Search Engine Safe URLs for Fusebox, Mach-II, Model-Glue, ColdBox and more.

2. What's this ColdCourse thing?

  • An addon for MVC frameworks to allow for pretty URLs
  • Executes before the framework
  • Works with any CF MVC framework if some conventions used
  • Based on ColdFusion on Wheels routing engine

3. What else does it do?

  • Single config file to setup.
  • Caches found courses
  • Optional single location for all resources
  • Provides redirects (301 Moved Permanently)

4. Sample Course User navigates to: http://localhost/home/about URL routing rules (.htaccess for apache, isapi filter for IIS) change this to http://localhost/index.cfm/home/about In index.cfm, before the framework is included ColdCourse evaluates this and executes the following. because it matches a default course: Since most frameworks rely on a single variable passed through the URL, they don't care if it was set by the URL, or set to the URL scope. 5. More Complex Example User navigates to: http://localhost/users/BrianLeGros The following routing rule is declared ColdCourse does the following: This would in effect be the same ashttp://localhost/index.cfm?fuseaction=user.view&username=BrianLegros 6. Any Problems With This?

  • Every course needs a controller and an action.
  • Relative links and paths within existing applications
  • Legacy POST actions must be changed.
  • Calls from within a framework?

7. How does that Work?

  • Code example

8. Thanks!

    • Resources :
    • ColdFusion on Wheels - cfwheels.com
    • Ruby On Rails - rubyonrails.com
    • ColdCourse available at coldcourse.riaforge.com
    • Code available at http://svn.adogo.us