I am writing a template which will have a series of functions and several of them will access the same include file which access a serial of classes. My idea was something like
<?php
require_once("myfile.php");
$db = new classthing();
function1(){
return $db->afunction;
}
function2() {
return $db->anotherfunction;
}
it does not seem to want to work!