dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] Where should I file the new modules ?


From: Régis Houssin
Subject: Re: [Dolibarr-dev] Where should I file the new modules ?
Date: Tue, 07 Aug 2012 13:56:55 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:14.0) Gecko/20120713 Thunderbird/14.0

your module descriptor is in /mymodule/core/modules ?


Le 07/08/12 13:51, Marc-Henri Pamiseux a écrit :
Thanks Régis,

I've already seen these explications in "dev/skeletons/skeleton_page.php".

However, how to set the menu in the module descriptor ?

Also, since i added the module in the "custom" folder, i can not find it
in the module list and i can not enable or disable it.

I'me using Dolibarr from git devel repository. It is in version 3.3.
I'll check that I have not introduced a bug with this approach.

Best regards,

Le 07/08/2012 11:05, Régis Houssin a écrit :
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/...';

      

_______________________________________________
Dolibarr-dev mailing list
address@hidden
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: 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/
---------------------------------------------------------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]