Hello
I'm trying to extend SideReport to create a custom report. Here is my code
Also note this is using a clean install of SS 2.4
RentalRequestReport.php located in mysite/code
<?php
/*
* Custom report class for Rental Requests
*/
class RentalRequestReport extends SideReport {
function title() {
return 'Rental Requests';
}
function records() {
return DataObject::get("BookingFormSubmission", "", "LastName");
}
function fieldsToShow(){
return array(
'FirstName' => array('NestedTitle', array('2')),
);
}
}
?>
and in my _config.php file i have
SS_Report::register('SideReport', 'RentalRequestReport');
this is the error I receive when trying to load the SS CMS
Fatal error: Class 'SideReport' not found in *directory* on line 7
*directory was added by me for clients privacy
I was reading in the change log that SideReport was removed "Removed SideReport class, use SSReport as the base-class for them instead"
I tried using SSReport instead but same error.
Am I missing something?