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: http://api.modx.com/revolution/2.2/db_core_model_modx_modx.class.html#%5CmodX::getParser()

object getParser()

Example

Get the MODx Parser object.

$parser = $modx->getParser();

See Also