Documentation

Loading Process

The system's functionality is operated from the main page. For the public page, this may change, but the process is very similar, with the following loading routine.

  1. Set the global constant DEBUG to 0
    This instruction can be moved according to debugging needs.
  2. Loading general-purpose libraries
    1. Loading the debug library
      Used to display status messages as HTML if the previous variable is enabled.
    2. Loading the dataxchg library
      Used for data exchange.
    3. Loading the crypt library
      Used to generate IDs and encrypted data.
  3. Loads the corresponding navigate navigation object and other objects.
    This provides navigation utilities for siteup, retrieves business rules, and lists files specific to the module.
    1. Establishes communication with the database via database
      Used to establish communication with the database
    2. Retrieves system values ​​via enviroment
      Identifies environment variables, as well as system default values.
    3. If the user is signed in, retrieves their data via userdata
      If the user is signed in via cookies, identifies the services and subservices assigned to them, as well as the privileges over them.
  4. Loads libraries
    Loads additional general libraries first, then specific ones. if the module so indicates.
  5. Loads language catalogs and dictionaries
    Depending on the language being used, loads the corresponding messages and dictionaries.
  6. Loads page information, as well as stylesheets css and primary loading scripts jsh
    As with libraries, it starts by loading those for general use and then continues with those specific to a module if so indicated.
  7. Display content
    That is, display the corresponding information requested within the body of the page.
  8. Collect messages msg and error codes err
    At the bottom, it lists possible error messages during the execution of a command or additional information that you want to display.
  9. Loading secondary load scripts
    At the bottom, it loads the general-purpose scripts followed by those specific to the module.

Search