$file = $this->retrieveEventLog();
if(!$file){
- return 'No record?!';
+ return "No records?!";
}
- print_r($file);exit;
- $source = json_decode($json);
- return 'HERE IS THE RESOURCE';
+ $source = json_decode(file_get_contents($file));
+
+ return $source;
}
function retrieveEventLog()