Controller Redirect

Is there a way to do a redirect? I know I could use cflocation but I
was just checking in to see if there was some kind of redirect method.

  <cffunction name="show" access="public" output="false"
returntype="any">
    <cfargument name="event" type="coldbox.system.beans.requestContext"
required="true">
    <cfset var userId = event.getValue("id",0)>

    <cfif userId EQ 0>
      <!--- redirect --->
    <cfelse>
      <cfset user = instance.transfer.get("users",userId)>
      <cfset event.setValue("user", user)>
    </cfif>

  </cffunction>

If you are using routes: setNextRoute()
If not, use: setNextEvent()

To execute an event without redirecting, use: runEvent()

Ernst

Something like this ? This works well but do I always include the
index.cfm/ ?

  <cffunction name="show" access="public" output="true"
returntype="any">
    <cfargument name="event" type="coldbox.system.beans.requestContext"
required="true">
    <cfset var userId = event.getValue("id",0)>

    <cfif userId EQ 0>
      <cfset event.setValue("message","User with an id of #userId# was
not found")>
      <cfset event.setValue("pageTitle", "List Users")>
      <cfset setNextRoute("index.cfm/user/list")>
    <cfelse>
      <cfset user = instance.transfer.get("users",userId)>
      <cfset event.setValue("user", user)>
    </cfif>

  </cffunction>

Please, read the docs...

http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbEventHandlersGuide#Howtorelocatetoanotherevent

Perfect, thank you!