Helper Functions

Functions, sometimes referred to as helpers or helper functions in LiteCart are a collection of functions to minimize your coding efforts.

Autoloading of Functions

No need to keep track of included function files. Functions are dynamically loaded when needed through the system node found in includes/library/lib_functions.inc.php.

Directory Location

All helper functions are stored in ~/includes/functions/. The filenames are preceeded by the prefix "func_". The name of the functions must begin with the collection name. Example: func_form.inc.php would host all helper functions named form_something().

To load ~/includes/functions/form.inc.php if not previously loaded, call form_draw_textarea():

functions::form_draw_textarea()

Revisions

Recently Edited Articles
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.