Hi
I have a snippet which build up a quiet big array. Now I want to retrieve values from this array from other snippets.
Is this possible? Where can I store the the variable?
Thanks for help
Yves
-
MODX Staff
- 10,725 Posts
in one snippet or plugin that executes before the other, you can do $modx->setPlaceholder(’nameofvar’, $var); and then $modx->getPlaceholder(’nameofvar’); to get it back in another, within the same request of course.
That’s exactly what i’m looking for.
Thanks a lot
Yves