Processing Output

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.

In some cases, however, you might want to post-process the finalized data in some way and send it to the browser yourself. revIgniter permits you to add a handler named _output to your controller that will receive the finalized output data.

Important: If your controller contains a handler named _output, it will always be called by the output library instead of puting the finalized data directly. The first parameter of the handler will contain the finalized output.

Here is an example:

command _output pOutput put pOutput end _output

Please note that your _output handler will receive the data in its finalized state.

Benchmark data will be rendered, cache files written (if you have caching enabled), and headers will be sent (if you use that feature) before it is handed off to the _output handler.

If you are using this feature the page execution timer might not be perfectly accurate since it will not take into acccount any further processing you do.

For an alternate way to control output before any of the final processing is done, please see the available handlers in the Output Library.