sorry, I've added a file 'service.php' that doesn't do anything, but now I've got my Course() function working with the correct URLs with both Client and Service sides
to the Course controller, error handling has been added to handle if the format is neither XML or JSON