problem with including classes
Posted: Sat Jul 23, 2005 7:29 am
In my app i am including two files with two classes eg. ClassPath.php and GlobalPaths.php. When i include these in my main doc. and try to use them, i get the following error:
Fatal error: Undefined class name 'globalpaths' in c:\documents and settings\sema\dokumenter\web\projekter\internt\newz.sema.dk\v3\public\main.php on line 65
The code is as follows...
And i know that the files is included, (if i let them echo an output it prints that before the error). And if i place the code inside the includes it works, but it should work even if the code is outside the includes...
The code is run on a WinXP box, with PHP4...
Fatal error: Undefined class name 'globalpaths' in c:\documents and settings\sema\dokumenter\web\projekter\internt\newz.sema.dk\v3\public\main.php on line 65
The code is as follows...
Code: Select all
// Setup application class paths first
include $appServerRootDir.'/WEB-INF/classes/phpmvc/utils/ClassPath.php';
// Setup the app server paths
include $appServerRootDir.'/WEB-INF/GlobalPaths.php';
$globalPaths = GlobalPaths::getGlobalPaths();
$gPath = ClassPath::getClassPath($appServerRootDir, $globalPaths, $osType);The code is run on a WinXP box, with PHP4...