Originally posted by Xenon
to answer your question:
the variables must be defined inside of the function which calls the template, so you have to edit a php-file (index.php in this case)[/B]
PHP Code:
$d="1";
function a($a) {
if ($d=="1") {
$c=2;
}
}
$d won't be set and can't be used, however either of the following two methods will work:
PHP Code:
function a($a) {
$d="1";
if ($d=="1") {
$c=2;
}
}
PHP Code:
$d=1;
function a($a) {
global $d;
if ($d=="1") {
$c=2;
}
}