41
edits
| 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: | ||
< | <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." )"); | ||
</ | </source> | ||
avant | avant | ||
< | <source lang="php"> return $this->_init($sql,$option);</source> | ||
Puis | Puis | ||
edits