EVAL Binding
Last updated Feb 8th, 2023 | Page history | Improve this page | Report an issue
Note:
The @EVAL binding has been deprecated and removed in MODX 3.0.
The @EVAL
binding was present in earlier versions of MODX and allowed executing arbitrary code to populate a template variable.
Due to the related security concerns, this has been removed in 3.0.
As an alternative, you can use a @SELECT, @CHUNK or @SNIPPET binding, where the last two could be used to for example run a snippet.