in reply to Another noob making a mess of variable scope....

The problem has nothing to do with scope. You are calling parsefile incorrectly. Change:
$twig->parsefile->($AppConfig::configFile);

to:

$twig->parsefile($AppConfig::configFile);