I want to be able to do the following:
$this->recordClassName = 'Blah';
return new $this->recordClassName($this,$this->data);
I was rather hoping that doing the above would be the equivalent of saying:
return new Blah($this,$this->data);
But it returns the following error:
Fatal error: Class name must be a valid object or a string in [redacted]
How do I get PHP to recognise recordClassName as a string?