Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
basics [2016/12/05 16:25] textstorm |
basics [2016/12/05 22:20] textstorm |
||
---|---|---|---|
Line 4: | Line 4: | ||
The main database object is stored inside a variable and is passed as $db to each function. | The main database object is stored inside a variable and is passed as $db to each function. | ||
- | Constants are available to all code including the "includes/functions.php" script. | + | Constants are available to all code that includes the "includes/functions.php" script. |
Functions can be access by instantiating the User class. This is often accessible through the $user variable pre-instantiated (this is passed to plugins) | Functions can be access by instantiating the User class. This is often accessible through the $user variable pre-instantiated (this is passed to plugins) |