As noted above, the second segment of the URI typically determines which handler in the controller gets called.
revIgniter permits you to override this behavior through the use of the _remap handler:
command _remap -- Some code here... end _remap
Important: If your controller contains a handler named _remap, it will always get called regardless of what your URI contains. It overrides the normal behavior in which the URI determines which handler is called, allowing you to define your own handler routing rules.
The overridden handler call (typically the second segment of the URI) will be passed as a parameter to the _remap handler:
command _remap pHandler if pHandler is "someHandler" then do handler else do defaultHandler end if end _remap
revIgniter has an output library that takes care of sending your final rendered data to the web browser automatically. More information on this can be found in the Views and Output library pages.