2012-02-02, 03:42:32
lbordas Wrote:Is it possible to pass a variable from a prevoius component, executed before in the same page, to a second component?
You can use global variables to pass values, e.g. with component1
Code:
<php
global $my_one1;
$my_one1 = ...
?>
Code:
<?php
global $my_one1;
if (isset($my_one1)) {
// do something with $my_one1
}
?>
(Make sure to have some prefix ($my_) for global variables in order to not come into conflict with GetSimple or plugins)