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






Bookmarks