In my component I am assigning the data from the model to the view using
class FileUploaderViewFileUploader extends JViewLegacy
// Overwriting JView display method
function display($tpl = null)
// Assign data to the view
$this->items = $this->get('Items'); // => This causes the error
// Display the view
The error at my website I get is:
Using $this when not in object context
Anybody an idea what happened here? This code worked well under PHP 5.6.x as well as PHP 7.0.26.
Thank you in advance.