[TYPO3] global php variable
a owen
aowen at swissonline.ch
Thu Mar 1 22:36:37 CET 2007
Hi,
I'm sure the function is working, it's a scipt included by lumaphp so
typo3 dosen't call it. i changed the example to prove it: "aaaa" is the
output.
thanks
andi
> I having troubles with "global" in my own php-functions. somehow my
> functions cant see outside variables even if i set them as global.
>
> $i = 5;
>
> function test() {
> global $i;
> echo $i.' aaaa';
> }
>
> There is no output, what can i do. i've checked google and php.net,
but
> found nothing. i've tried it without typo3 an then it works so i dont
> think it's my server.
> Are you sure your function is really executed? It does not have
'user_'
> prefix as required by typo3 and most likely typo3 will avoid calling
it
> because it does not follow conventions.
More information about the TYPO3-english
mailing list