Introduction
Titill
ÓbreyttPermalink
ÓbreyttEfni
| Old | New | ||
|---|---|---|---|
| 33 | 33 | ||
| 34 | ## Folder Structure | 34 | ## Folder Structure |
| 35 | 35 | ||
| 36 | In the early days of LiteCart, we ad | 36 | In 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 | ||
| 38 | This is the current folder structure as of LiteCart 2.3+: | 38 | This is the current folder structure as of LiteCart 2.3+: |
| 39 | 39 | ||
| 115 | 115 | ||
| 116 | No need to keep track of included function files. Functions are dynamically loaded when needed through the system node found in lib_functions.inc.php. | 116 | No 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 | ||
| 118 | All helper functions are stored in ~/includes/functions/. The filenames are preceeded by the pre | 118 | 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()`. |
| 119 | 119 | ||
| 120 | To load ~/includes/functions/form.inc.php (if not previously loaded) and call form_draw_textarea(): | 120 | To 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 | ||
| 129 | Entity 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 | 129 | Entity 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 | ||
| 131 | To create a new product and give it an English name: | 131 | To create a new product and give it an English name: |
| 132 | 132 | ||
Breytt af deagomeadows þann 23 okt. 2024 kl. 16:21