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

$res=@include("../main.inc.php");                      // For root directory
if (! $res) $res=@include("../../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.
>
>
> _______________________________________________
> Dolibarr-dev mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

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: [email protected]

Dolibarr developer: [email protected]
Web Portal: http://www.dolibarr.fr/
SaaS offers: http://www.dolibox.fr/
Shop: http://www.dolistore.com/
Development platform: https://doliforge.org/
---------------------------------------------------------

_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à