Vork Internal Execution Order
Internal MVC Execution Order
[brackets] indicate "only if utilized" (optional)
- [APP_CONSTRUCT]
- default helpers
- controller::action
- [components] / [models]
- view
- [elements (in view)]
- layout
- [elements (in layout)]
- [APP_DESTRUCT]
- [elements (in layout)]
- layout
- [elements (in view)]
- view
- [components] / [models]
- controller::action
- default helpers
Internal Object Execution Order
Instantiate of objects:
mvcconfigInitconfigDefaultsconfig(if lazy-loading is disabled) instantiate database connection(s)
Call methods:
(only if caching is enabled) config::cache()mvc::_parseUrl()(only if defined in .config) {config::APP_CONSTRUCT}::__construct()mvc::_loadAction()load each helper that is defined in config::$helpers via exampleHelper::__construct(){mvc::$controller}::{mvc::$action}()if no action is set or an action does not exist while optionalAction is true then {mvc::$controller}::index()
call any models and/or components defined within the controller as they are encountered(if lazy-loading is enabled) instantiate database connection for the model via model ("model" is the actual object name)
parse the view via mvc::_loadView()call any elements within the view as they are encountered via get::element() and/or load::element()
parse the layout and embed the view contents into the layoutcall any elements within the layout as they are encountered via get::element() and/or load::element()
(only if defined in .config) {config::APP_DESTRUCT}::__construct()


