Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

Vork Internal Execution Order

API >> 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]

Internal Object Execution Order

Instantiate __construct() of objects:

  • mvc
  • configInit
  • configDefaults
  • config
  • (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 layout
    • call 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()
Eric DavidLast modified by Eric David