Go to the source code of this file.
Enumerations | |
| enum | ANEWT_PATH |
| The base directory path for all Anewt modules. | |
Functions | |
| create_include_function ($name, $path, $file_suffix='.lib.php', $main_file='main') | |
| Create a simple include function that loads modules. | |
Include this file to load Anewt.
Definition in file anewt.lib.php.
| create_include_function | ( | $ | name, | |
| $ | path, | |||
| $ | file_suffix = '.lib.php', |
|||
| $ | main_file = 'main' | |||
| ) |
Create a simple include function that loads modules.
Call this method from a default include file to have a anewt_include() like function for your own libraries.
| $name | Name of the function. This name will be suffixed with _include, e.g. myproject will result in the function myproject_include() being defined | |
| $path | The file path to use for inclusion | |
| $file_suffix | Filename suffix (optional, default to .lib.php) | |
| $main_file | Default filename in case the argument to the include function is a directory (optional, default to main) |
Definition at line 44 of file anewt.lib.php.
1.5.9