31,021
edits
| Line 194: | Line 194: | ||
</source> | </source> | ||
== | == Working directory == | ||
If you need to create a working directory, into your code, refer to it with | |||
DOL_DATA_ROOT.'/monmodule' | DOL_DATA_ROOT.'/monmodule' | ||
The directory can be created into your code by the following fnction: | |||
<source lang="php"> | <source lang="php"> | ||
$mymoduledir=DOL_DATA_ROOT.'/monmodule'; | $mymoduledir=DOL_DATA_ROOT.'/monmodule'; | ||
| Line 203: | Line 204: | ||
</source> | </source> | ||
If you need a directory to store temporary data, this directory must be DOL_DATA_ROOT.'/monmodule/temp' | |||
= Design patterns and Object programming = | = Design patterns and Object programming = | ||