de cette facon : $objet = new $variable() ou $variable contient le nom de ma classe.
bonjour ,
savez-vous comment éviter cette erreur ?
Fatal error: Uncaught exception 'Exception' with message 'SimpleXMLElement::__construct() expects exactly 1 parameter, 0 given' in c:\wamp\www\ouifficlasses\ouiffi.class.php:60 Stack trace: #0 c:\wamp\www\ouifficlasses\ouiffi.class.php(60): SimpleXMLElement->__construct() #1 c:\wamp\www\ouifficlasses\index.php(50): client->CreateForm('client', 'modifier') #2 {main} thrown in
Partager