Merc Studio Tech Blog
Monday, January 3, 2011
MODx loading other components lexicon
If you need some lexicon from another components from your snippet,
you may do so by running this in snippet:
$modx->lexicon->load("namespacename:filename");
Example:
$modx->lexicon->load("login:register");
//resolve to: core/components/login/lexicon/register.inc.php
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment