Does any know of any issues with extending a class from an include file?
i have:
include("include.inc");
class groupadmin extends groups {
function __construct() {
print "In groupsadmin constructor\n";
}
}
$obj = new groupadmin();
the groups class is in the include.inc file. When i run this I get
Fatal error: Class 'groupadmin' not found in C:\apache\htdocs\portal\admin\usergroupadmin.php on line 14
when i paste the contents of include.inc in the file it works fine.
i have:
include("include.inc");
class groupadmin extends groups {
function __construct() {
print "In groupsadmin constructor\n";
}
}
$obj = new groupadmin();
the groups class is in the include.inc file. When i run this I get
Fatal error: Class 'groupadmin' not found in C:\apache\htdocs\portal\admin\usergroupadmin.php on line 14
when i paste the contents of include.inc in the file it works fine.