Jump to main content Jump to doc navigation

modX::getParser

Gets the MODX parser.

Returns an instance of modParser responsible for parsing tags in element content, performing actions, returning content and/or sending other responses in the process.

Syntax

API Doc: modX::getParser()

object getParser()

Example

Get the MODX Parser object.

$parser = $modx->getParser();

See Also