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()

Revisies

Recent aangepaste artikelen
Deze website maakt geen gebruik van cookies en geen trackingtechnologie van derden . Wij denken dat we het beter kunnen dan anderen en hechten veel waarde aan uw privacy.