Friendly URL Controller

The FarCry Core framework takes cues from the URL to determine what content instance or content type and what view should be rendered in the browser. These variables are closely integrated with the Friendly URL engine to provide good looking URLs that can drive the frameworks output. Understanding how the URL is interpreted by the framework is an important part of FarCry development.

Motley, the FarCry 5.2 release, has some awesome changes to the way the controller interprets the URL. The upshot of all this is improved management of friendly URLs (which has always been pretty special in FarCry) but also the option to create your own "constructed" URLs where you nominate the type and views you want right there in the address bar. Another massive improvement is the ability to add parameters to the end of Friendly URLs (without a ? and &).

We've started a nuts and bolts reference page to describe what is going on. We'll be improving this over time with more layman examples:
http://docs.farcrycms.org/display/FCDEV50/Friendly+URL+Controller

Setting up Friendly URLs for your project is pretty straightforward but you will need the ability to apply a rewrite rule to your webserver. Details for Apache and IIS available here:
http://docs.farcrycms.org/display/FCDEV50/Friendly+URLs

Enjoy

2309 views and 1 response

  • Dec 11 2009, 2:36 AM
    bookseller responded:
    thanks for this information, this should be base idea of any frame work just like cakephp does with url parsing to get controller and action parameters