Jump to main content Jump to doc navigation

modX.regClientHTMLBlock

Other versions: 3.x — Found a problem? Please edit this page or report an issue.

modX::regClientHTMLBlock

Register HTML to be injected before the closing BODY tag.

Syntax

API Doc: http://api.modx.com/revolution/2.2/db_core_model_modx_modx.class.html#%5CmodX::regClientHTMLBlock()

void regClientHTMLBlock (string $html)

Example

Inject a footer into the page.

$modx->regClientHTMLBlock('<div id="footer">(c) 2009 MODX</div>');

See Also