Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To activate Friendly URLs for a custom type (or one you've extended from core) simply add the attribute/value bFriendly="true" to the <cfcomponent> tag. To disable it, set it to false. You must update the application scope for the change to take effect (specifically the COAPI portion of the application scope).

Friendly URL initialisation not happenning?

It is possible to force the friendly url initialisation. This can be done by adding the following line of code
<cfset application.fc.factory.farfu.turnon() />
to _serverSpecificVarsAfterInit script
/projects/projectName/config/_serverSpecificVarsAfterInit.cfm

Troubleshooting

Sometimes getting Friendly URLs to work the first time might seem frustrating... especially when you are reasonably sure you've configured the web server correctly. The reason could be because FarCry has cached a boolean that says Friendly URLs is not currently active (this is done for performance reasons and is checked only once per application scope refresh).

...