Output Library

The Output Library is a small library with one main function: To send the finalized web page to the requesting browser. It is also responsible for caching your web pages, if you use that feature.

Note: this library is initialized automatically by the system so there is no need to do it manually.

Under normal circumstances you won't even notice the Output library since it works transparently without your intervention.

For example, when you use the Loader library to load a view file, it's automatically passed to the Output library, which will be called automatically by revIgniter at the end of system execution.

It is possible, however, for you to manually intervene with the output if you need to, using either of the two following handlers:

The rigSetOutput command permits you to manually set the final output string.

The rigGetOutput function permits you to manually retrieve any output that has been sent for storage in the output library.

The rigSetHeader command permits you to manually set server headers, which the output library will send for you when outputting the final rendered display.

The rigEnableProfiler command permits you to enable/disable the Profiler, which will display benchmark and other data at the bottom of your pages for debugging and optimization purposes.

The revIgniter output library also controls caching. For more information, please see the Caching documentation.