Old topic comes back again...There is no way I can get the calue of the $_REQUEST in one snippet if its value was defined in another. Tried all sorts of solutions and the presented solutions from above work only if the value is set and retrieved in the same snippet. Any ideas?
Even the simplest concept does not work:
One snippet sets the request - $_REQUEST['test'] = 'test info';
Another snippet gets the request value - $var = $_REQUEST['test']; return $var;
Both snippets are uncached and are on the very same page.
What is more interresting, setting and getting placeholder works in a weird way:
Let's assume I set a placeholder in one snippet the follwoing way:
$modx->setPlaceholder('placeholder_name', $var);
and afterwards I'm unable to retrieve it in the otther snippte using this code:
$modx->getPlaceholder('placeholder_name');
but I'm able to output its value using [[+placeholder_name]]
That really does not make sense to me or maybe I don't know some snippet processing mechanisms in MODX...
[ed. note: ellipsis_89 last edited this post 14 years ago.]