Great ! :)
Thank you very much !
--
Responsable technique
SARL altairis
www.altairis.fr
09 52 71 70 96
Le 30/11/2013 16:54, Destailleur Laurent a écrit :
Do you mean to know how to forge an url ?
For this you must use dol_buildpath('mymodyle/myajaxpage.php') function.
Function will forge correct url according to place of module.
2013/11/30 Christophe Battarel <christophe.batta...@altairis.fr
<mailto:christophe.batta...@altairis.fr>>
And for ajax calls ?
--
Responsable technique
SARL altairis
www.altairis.fr <http://www.altairis.fr>
09 52 71 70 96 <tel:09%2052%2071%2070%2096>
Le 30/11/2013 12:10, Laurent Destailleur (eldy) a écrit :
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:e...@destailleur.fr <mailto:e...@destailleur.fr>
Web:http://www.destailleur.fr
Dolibarr (Project leader):http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal:cont...@destailleur.fr
<mailto:cont...@destailleur.fr>
AWStats (Author) :http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal:cont...@destailleur.fr
<mailto:cont...@destailleur.fr>
AWBot (Author) :http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) :http://cvschangelogb.sourceforge.net
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org <mailto:Dolibarr-dev@nongnu.org>
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org <mailto:Dolibarr-dev@nongnu.org>
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev