-
MODX Staff
- 10,725 Posts
There’s no eval involved in Revolution, but all the same fundamentals of PHP variable scoping applies. Snippets and plugins now just get included as global functions which are called by the parsing engine. You can create global variables by manipulating the $GLOBALS array directly or by using the global keyword to identify that references to a particular variable are not local to the function representing your snippet/plugin.