-
Notifications
You must be signed in to change notification settings - Fork 0
Home
EssenceOne Framework uses a non conformist approach to routing and naming. By using a single index model the views and controllers are logically stepped in alphanumeric order. The result is a dynamic MVC framework which requires little to no routing in a conventional manner. The single indexer list both views and controllers in a alphanumeric pattern. Static-Public, Protected and Private modules are separated in alphanumeric order also.
The model indexer stages page-parts(views) and controllers(classes/function)in alphanumeric order according to the template and script order in which they are called. The Static(Public Module) as follows:
- c1/config1.php (site wide naming,roles,sessions,cookies)
- c1/redirect1.php (validates Static,Protected and Private
- v1/head1.php (sets our page headers)
- v1/toolbar1.php
- v1/hrz_menus1.php
- v1/lftmenu1.php
- v1/contents1.php
- v1/rhtmenu1.php
- v1/rhtfar.php
- v1/hiddenmodals1.php
- footers1.php
The modules folders are separated in alphanumeric order as follows:
- c1/ (our static controllers) static
- c2/ (our protected controllers) members etc.
- c3/ (our private controllers) admin
- (add more modules-->c4,c5 etc.)
- v1 (our static views)
- v2 (our protected views)
- v3 (our private views)
- (add more modules-->v4,v5 etc.)
- a1/ (configs and ini-sessions)
- r1/ (resources)
- s1/ (css-styles)
- p1/ (image folders)
- j1/ (java-scripts)
- l1/ (libraries-languages)
- d1/ (documents-xml)
- (anything else that suits the developer)
- Load the EssenceOne index.php page in place of the existing one.
- Start by listing static views in the indexer list in order in which they are requested.
- Then add controllers, page-parts and resources making sure all links,php-includes-redirects and all resources are routed in relation to the path from the indexer(index.php model).
I started this project while tackling problematic Php websites developed by other frameworks in which out dated versions versus framework upgrades have created a jumbled mess of "Organized Despair". The EssenceOne single model indexer not only works easily but is fast when the developer is trying to remember where everything needs to be routed. Then once everything is routed correctly then add your Framework router of choice, or simply use EssenceOne.