I need your help or an explanation to the following Problem:
I write an module and define some variables and try to use them in a function.
See the code in the german part.
This 08/15 code does not work with CMSMS.
I haven't found out how CMSMS handles gobal variables or how the $GLOBALS is modified.
Can someone explain it to me?
Thank you in advance,
Frank
Hallo,
ich benötige eure Hilfe, bzw. eine Erklärung zu folgendem Problem:
Ich schreibe gerade ein Modul und habe ein paar Daten ganz normal global definiert und möchte jetzt innerhalb einer Funktion darauf zugreifen. Also 08/15 PHP.
Als Beispiel test.php in action.globaltest.php
test.php
Code: Select all
<?php
// test.php
$gTest = "Ich bin ein Test";
function fnTest()
{
global $gTest;
echo $gTest;
}
?>
Code: Select all
<?php
include( 'include/test.php' );
fnTest();
?>
Kann mir das jemand erklären?
Grüße,
Frank