|
From: | Régis Houssin |
Subject: | Re: [Dolibarr-dev] Where should I file the new modules ? |
Date: | Tue, 07 Aug 2012 11:05:22 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
je vais le faire en français car je n'ai pas le temps :-) tu dois rendre compatible ton module pour qu'il fonctionne à la fois dans custom et à la racine de dolibarr pour le main.inc.php address@hidden("../main.inc.php"); // For root directory if (! $res) address@hidden("../../main.inc.php"); // For "custom" directory pour l'appel de classe propre à tes pages et à ton module require './class/taclasse.php'; pour l'appel de classe de ton module mais dont on ne sait pas où sera appelé le fichier dol_include_once('/tonmodule/class/taclasse.php'); pour les classes de dolibarr tu utilises toujours require_once DOL_DOCUMENT_ROOT.'/core/class/...'; Le 07/08/12 10:48, Marc-Henri Pamiseux
a écrit :
Hi, Well, as i create a module i guess it is specific ;) Until the module is under development or that it is not natively integrated to Dolibarr, there is no reason to consider this module as a whole. In that way, of course I do not want the Dolibarr updates to replace my module. However, one question leads to another : - How to set the URL of the pages of the module that will be in the folder "htdocs/custom" ? Is it going to be "/custom/mymodule/index.php" or /mymodule/index.php" ? Best regards, Le 07/08/2012 10:15, Christophe Battarel a écrit :i guess htdocs/custom is for specific modules that you dont want to be replaced by dolibarr updates. Cordialement, -- Régis Houssin --------------------------------------------------------- Cap-Networks Cidex 1130 34, route de Gigny 71240 MARNAY FRANCE VoIP: +33 1 83 62 40 03 GSM: +33 6 33 02 07 97 Web: http://www.cap-networks.com/ Email: address@hidden Dolibarr developer: address@hidden Web Portal: http://www.dolibarr.fr/ SaaS offers: http://www.dolibox.fr/ Shop: http://www.dolistore.com/ Development platform: https://doliforge.org/ --------------------------------------------------------- |
[Prev in Thread] | Current Thread | [Next in Thread] |