dedlfix: Dynamic class

Beitrag lesen

Tach!

how can I do something like this. With string the path is not working

According to Namespaces and dynamic language features it should ...

$class = 'Myclassname';
$class = '\Application\Modell\'.$table;
$object = new $class($this->getAdapter());

... but $class != $table. If this is not the reason please tell what "is not working" exactly means (error message).

dedlfix.