Jump to main content Jump to doc navigation

modX::regClientCSS

Register CSS to be injected inside the HEAD tag of a resource.

Syntax

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

void regClientCSS (string $src)

Example

Register a CSS file to the HEAD tag:

$modx->regClientCSS('assets/css/style.css');

See Also