Jump to main content Jump to doc navigation

modX.getRegisteredClientScripts

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

modX::getRegisteredClientScripts

Returns all registered JavaScript and HTML blocks.

Syntax

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

string getRegisteredClientScripts ()

Example

Get all registered scripts into an array.

$scripts = $modx->getRegisteredClientScripts();

See Also