304
edits
| Line 380: | Line 380: | ||
== Working directory == | == Working directory == | ||
If you need to create a working directory, into your code, refer to it with | If you need to create a working directory, into your code, refer to it with | ||
'''DOL_DATA_ROOT.'/ | '''DOL_DATA_ROOT.'/mymodule'''' | ||
The directory can be created into your code by the following | The directory can be created into your code by the following function: | ||
<source lang="php"> | <source lang="php"> | ||
$mymoduledir=DOL_DATA_ROOT.'/ | $mymoduledir=DOL_DATA_ROOT.'/mymodule'; | ||
dol_mkdir($mymoduledir); | dol_mkdir($mymoduledir); | ||
</source> | </source> | ||
If you need a directory to store temporary data, this directory must be '''DOL_DATA_ROOT.'/ | If you need a directory to store temporary data, this directory must be '''DOL_DATA_ROOT.'/mymodule/temp'''' | ||
= Design patterns and Object programming = | = Design patterns and Object programming = | ||
edits