Interfaces from foreign systems toward Dolibarr: Difference between revisions

Jump to navigation Jump to search
m
Line 55: Line 55:
<source lang="php">
<source lang="php">
include('/pathofdolibarrhtdocs/master.inc.php');
include('/pathofdolibarrhtdocs/master.inc.php');
</pre>
</source>
This will create objects $db, $lang and $user.
This will create objects $db, $lang and $user.
If we want that actions (create, update), are tagged with a particular user as the create/update user, you must do after the include of master.inc.php and before callong the create or update methode
If we want that actions (create, update), are tagged with a particular user as the create/update user, you must do after the include of master.inc.php and before callong the create or update methode

Navigation menu