dolibarr-dev
[Top][All Lists]
Advanced

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

Re: [Dolibarr-dev] [ANN] New module template


From: Régis Houssin
Subject: Re: [Dolibarr-dev] [ANN] New module template
Date: Mon, 29 Oct 2012 16:27:35 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

well you can put these directories wherever you want, but it should keep a certain homogeneity.
Personally I prefer to put this in "core" to concentrate all regarding the core module.
Very useful if you have lots of folders in the root, it's a little housekeeping ... :-)



Le 29/10/12 16:04, Doursenaud, Raphaël a écrit :
Thanks for the answer Régis but that doesn't make sense, we already are in the module directory.
These should be top level for easier access.

The only valid reason I see why some elements should be in core in the context of a module is because __Dolibarr's core__ need access to them (module descriptor, box, triggers…).
Then placing _javascript_, css and maybe themes in /core/ could be justified if there is optimization done on them by Dolibarr (i.e. : compression before serving) but I fail to see why my libraries and includes should go in core.

Please prove me wrong.

2012/10/29 Régis Houssin <address@hidden>
all that is common to all elements of the module should be in core


Le 29/10/12 14:26, Doursenaud, Raphaël a écrit :
2012/10/29 Régis Houssin <address@hidden>
great !

but...

move /includes/boxes/ to /core/boxes/

Aknoledged. This is an old file that sneaked into…
Already corrected.
 
move /includes/ to /core/inc/

move /lib/ to /core/lib/

move /js/ to /core/js/
Would you mind explaining why for these. I still see them in some current modules and haven't experienced breakage.
I've always had a hard time finding these little bits an pieces. This is useful for having the right mind set when developing.

Thanks for the feedback anyway !
--
Raphaël Doursenaud
05 35 53 97 13 - 06 68 48 20 10


Technopole Hélioparc
2 avenue du Président Pierre Angot
64053 PAU CEDEX 9
SARL GPC.solutions au capital de 7 500 € - R.C.S. PAU 528 995 921

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]