Language and development rules: Difference between revisions

Jump to navigation Jump to search
m
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.'/monmodule''''
'''DOL_DATA_ROOT.'/mymodule''''


The directory can be created into your code by the following fnction:
The directory can be created into your code by the following function:
<source lang="php">
<source lang="php">
$mymoduledir=DOL_DATA_ROOT.'/monmodule';
$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.'/monmodule/temp''''
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 =
304

edits

Navigation menu