Créer un modèle de document PDF: Difference between revisions

Line 97: Line 97:
Dans la fonction d'initialisation du module ajoutez votre modèle:
Dans la fonction d'initialisation du module ajoutez votre modèle:


<code>
<source lang="php">
sql=array("INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES(".$MODELNAME.",".$MODEL_TARGET_MODULE.",".$conf->entity." )");
sql=array("INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES(".$MODELNAME.",".$MODEL_TARGET_MODULE.",".$conf->entity." )");
</code>
</source>


avant
avant


<code> return $this->_init($sql,$option);</code>
<source lang="php"> return $this->_init($sql,$option);</source>


Puis
Puis
41

edits