Avant de remplir un champs {titre},
Comment peut-on tester si le champs {titre} est existant avant de le remplir avec
- Code: Select all
$odf->setVars('titre', $row[$i+1]);
car si dans mon document {titre} n'existe pas, j'ai une erreur fatale.
- Code: Select all
Fatal error: Uncaught exception 'OdfException' with message 'var titre not found in the document' in library/odf.php:83 Stack trace: #0 exporter_facture_odt.php(55): Odf->setVars('titre', '0900 0002') #1 {main} thrown in odf.php on line 83
Merci
Pat