Introduction

Title

No changes

Permalink

No changes

Innhold

OldNew
33 33
34## Folder Structure 34## Folder Structure
35 35
36In the early days of LiteCart, we adapted a directory layout that was reminiscent of osCommerce. We specifically targeted osCommerce users for migrating to LiteCart and they needed a folder structure they could recognize. That is no longer the case and LiteCart 3.0 comes with a fresh, new directory structure. 36In the early days of LiteCart, we adopted a directory layout that was reminiscent of osCommerce. We specifically targeted osCommerce users for migrating to LiteCart and they needed a folder structure they could recognize. That is no longer the case and LiteCart 3.0 comes with a fresh, new directory structure.
37 37
38This is the current folder structure as of LiteCart 2.3+: 38This is the current folder structure as of LiteCart 2.3+:
39 39
115 115
116No need to keep track of included function files. Functions are dynamically loaded when needed through the system node found in lib_functions.inc.php. 116No need to keep track of included function files. Functions are dynamically loaded when needed through the system node found in lib_functions.inc.php.
117 117
118All helper functions are stored in ~/includes/functions/. The filenames are preceeded by the preifx "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()`. 118All 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()`.
119 119
120To load ~/includes/functions/form.inc.php (if not previously loaded) and call form_draw_textarea(): 120To load ~/includes/functions/form.inc.php (if not previously loaded) and call form_draw_textarea():
121 121
126 126
127## Entity Objects 127## Entity Objects
128 128
129Entity objects are class objects that control object data and their mappings to the database. They are similar to Object Relational Mappings. By initiating an entity, PHP will autoload the required file for you and retrieve it's structure and data from the database. 129Entity objects are class objects that control object data and their mappings to the database. They are similar to Object Relational Mappings. By initiating an entity, PHP will autoload the required file for you and retrieve its structure and data from the database.
130 130
131To create a new product and give it an English name: 131To create a new product and give it an English name:
132 132

Edited by deagomeadows on 23 okt. 2024 at 16:21

View code on GitHub