[Typo3] Nested php function calls

amorphous amorphous at gmx.net
Mon Jun 20 17:49:11 CEST 2005


  Hi,

I'm a typo3 + php newbie, so please bear with me :)

I managed to make a call to my own php script, similar to following:

----------------------------------
class test {
  function A(){
    return "success";
  }
}
----------------------------------
This works fine.


Now, when I try to make a nested call to an additional function:
-----------------------------------
...
function B(){
}

function A(){
    B();
    return "success";
}
----------------------------------
I get a "Fatal error: Call to undefined function B()."

I tried everything without success...

Do I miss some fundamental php or typo3 concept?

Thank you in advance,
Harald





More information about the TYPO3-english mailing list