Posted by Rainer Hahnekamp on 03/20/05 19:47
Hello everybody,
I want to write a method in version 4 that executes a method of an object.
As parameter the classname and the methodname is passed:
function executeMethod($classname, $methodname) {
$object = new $classname();
$object->$methodname();
}
This does not work. What am I doing wrong?
Greetings,
-Rainer Hahnekamp
Navigation:
[Reply to this message]
|