This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
fulleron:motivations [2012/04/10 14:59] unirgy created |
fulleron:motivations [2012/04/10 15:08] (current) unirgy |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Motivations ======= | ||
| + | |||
| + | This page documents motivations behind conventions and decisions in the framework. | ||
| + | |||
| + | ===== File structure ===== | ||
| + | |||
| + | ==== Different entry points for areas ==== | ||
| + | |||
| + | admin | ||
| + | index.php | ||
| + | index.local.php | ||
| + | .htaccess | ||
| + | index.php | ||
| + | index.local.php | ||
| + | .htaccess | ||
| + | |||
| + | ==== Repeating parent folder name within file name ==== | ||
| + | |||
| + | FCom | ||
| + | Catalog | ||
| + | CatalogFrontend.php | ||
| + | CatalogAdmin.php | ||
| + | |||
| + | === Inconsistency between class name and file name === | ||
| + | |||
| + | ==== Keeping different classes within the same file ==== | ||
| + | |||
| + | <?php | ||
| + | class Custom_Module_Frontend extends BClass | ||
| + | { | ||
| + | | ||
| + | } | ||
| + | | ||
| + | class Custom_Module_Frontend_Controller extends FCom_Frontend_Controller_Abstract | ||
| + | { | ||
| + | | ||
| + | } | ||
| + | | ||
| + | class Custom_Module_Model_Test extends FCom_Core_Model_Abstract | ||
| + | { | ||
| + | | ||
| + | } | ||
| + | |||
| + | ===== Class and method naming ===== | ||
| + | |||
| + | ==== idiorm/ | ||
| + | | ||
| + | ==== B* classes ==== | ||
| + | | ||