Documenation

Buffer

/_plugins/buffer.php

Buffers provide more control over generated output. Pages can be stored in a variable and manipulated before being send to the browser (e.g. compressed or cached for better performance) or output can be cancelled in case of an error to prevent broken pages from being displayed.

This plugin automatically enables gZIP compression for supported browsers and appends debug messages to the HTML code if debugMode is enabled in /_config.php.

Class

$model->buffer

Public functions

  • $model->buffer->start ( )
    Start buffering. No output will be send to the browser until $model->buffer->flush() is called.
  • $model->buffer->flush ( )
    Flush the buffer, send buffered contents to the browser.
  • $model->buffer->clean ( )
    Clean the buffer, buffered contents are erased and nothing is send to the browser. All output generated after calling this function is send directly to the browser.