Noob question about variables
Posted 30 September 2009 - 05:36 PM
I am using a snippet to output text chosen by a random number. Later on the same page, from within a different snippet I'd like to output more text based on the same random number of the earlier snippet. What's the easiest way to access/pass a variable from/to the second snippet, please?
Posted 30 September 2009 - 11:53 PM
Hope this helps... Welcome to the Etomite forums...
Posted 03 October 2009 - 09:39 AM
$out = $etomite->runSnippet('otherSnippet', $params=array('getTextVariable'=>$text));
The $text variable will then be available in the otherSnippet snippet as a variable called $getTextVariable as if you had passed it in the snippet call.
Edited by Cris D., 03 October 2009 - 09:40 AM.
Posted 03 October 2009 - 02:07 PM
Posted 04 July 2010 - 09:16 PM
Sorry for being so late.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users