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

Révisions

Articles récemment édités
Ce site n'utilise aucun cookie ni aucune technologie de suivi tierce. Nous pensons pouvoir faire mieux que les autres et nous nous soucions vraiment de votre vie privée.