Hi,
I'm in PHP and I must access a Static method of an object which name must change.
private $controlleur = null;
private static $instance = null;
private function __construct() {
$nomControlleur = "Controlleurs\_" . Session::singleton()->controlleur;
$this->controlleur = $nomControlleur::singleton();
}
This preceding code is giving me " Syntax error unexpected :: ".
I've also tried writing {$nomControlleur}::singleton(); but it's giving me even more errors,
thanks a lot for your help.
Balls of steel