|
From: | Destailleur Laurent |
Subject: | Re: [Dolibarr-dev] DOL_URL_ROOT_ALT removed ? |
Date: | Sat, 30 Nov 2013 16:54:22 +0100 |
And for ajax calls ?Le 30/11/2013 12:10, Laurent Destailleur (eldy) a écrit :
-- Responsable technique SARL altairis www.altairis.fr 09 52 71 70 96
Le 30/11/2013 08:13, Christophe Battarel a écrit :
Hello,
I'm working on 3.5alpha to develop modules and i notice that DOL_URL_ROOT_ALT and DOL_DOCUMENT_ROOT_ALT constants are not defined anymore ?
Those constants that gave path to custom modules are very used by modules developer and will need to be replaced with something to make old modules to work with 3.5.
But i dont know how to do it !
Does anyone know how to replace those constants and why they have disappeared ?
Regards
Christophe
This constant should not be used by developers.
Instead you must use
dol_include_once('/mymodule/class/myclass.class.php')
If your module use the "dol_include_once", include will works whatever is the location where you put your module (into root dir or into "custom" dir).
You will also be compatible with old dolibarr version (3.4, 3.3, ...)
You will also benefit a future feature to allow to have several "custom" dir.
More information on page:
http://wiki.dolibarr.org/index.php/Module_development#Create_or_modify_PHP_screens_.28optional.29
-- Eldy (Laurent Destailleur). EMail: address@hidden Web: http://www.destailleur.fr Dolibarr (Project leader): http://www.dolibarr.org To make a donation for Dolibarr project via Paypal: address@hidden AWStats (Author) : http://awstats.sourceforge.net To make a donation for AWStats project via Paypal: address@hidden AWBot (Author) : http://awbot.sourceforge.net CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net
_______________________________________________ Dolibarr-dev mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
[Prev in Thread] | Current Thread | [Next in Thread] |