Hi,
I have just started a new project, I have created an error reporting object which among other things prints errors when database errors occur. Now, my database class creates an instance of the error reporter, however, when I intentionally raise errors nothing is output. The links between my classes are quite complex, however, I don't see why they don't work, they are like so:
mysql-data-layer(object) -> error-reporter(object)
error-reporter(object) -> patTemplate(object)
patTemplate(object) -> error.template
My only theory is that because these are stored in different directories is that the include paths get mucked up when different objects include the files? for example,
error_reporter includes patTemplate with:
include("../interface/patTemplate/patTeamplate.php");
when I include the error-reporter (which is in a different directory to the data-layer), could the path then go out of sync? I have a feeling this might be the problem because if i initialise and create a fake error in the same document as the error reporting object then it works! If anybody thinks it is a problem with the actual classes then i can post them here.
I have obviously tried a seach for objects on the forum but i got other 2000 results, and to be honest i feel the documentation for objects in PHP 4 is pretty poor.
Any help would be appreciated,
Tom