> return $realClassName::getInstance(); I always get syntax errors when calling functions in non-instantiated classes where the classname ($realClassName) is a variable. Is there a way? dan