Hi,
I have recently purchased the Mastering Web Apps book and have been working through the examples and I am currently trying to modify and expand the ToDo example in particular.
As part of that process I have created a class timesheet and added the necessary 'require' statement however, when I log in the redirect issues the following error message:
Fatal error: Class 'timesheet' not found in D:\wamp\www\tango\index.php on line 454
Here is the function in question:
I have been going round in circles on this one and as a novice do not know what other significant pieces to add to this for clarity. I would greatly appreciate some input on this issue.
Best Regards
Chris
I have recently purchased the Mastering Web Apps book and have been working through the examples and I am currently trying to modify and expand the ToDo example in particular.
As part of that process I have created a class timesheet and added the necessary 'require' statement however, when I log in the redirect issues the following error message:
Fatal error: Class 'timesheet' not found in D:\wamp\www\tango\index.php on line 454
Here is the function in question:
function listTimesheet() {
$results = array();
$results['timesheets'] = timesheet::getListForUser( user::getLoggedInUser() );
require( TEMPLATE_PATH . "/listTimesheet.php" );
}
I have been going round in circles on this one and as a novice do not know what other significant pieces to add to this for clarity. I would greatly appreciate some input on this issue.
Best Regards
Chris



