This is where we discuss and decide once and for all how to implement preload in vtiger.
The 'preload' is a PHP section used to run code before every kind of requests and for each requests to which the application is targeted. This is a middle stage between configuration loading and application entrypoints or runtime.
Complex application can have differents entrypoints, for examples vtiger supports various entrypoints. This means that if I want a portion of my custom code is executed into all of entrypoints I need to copy it into everyone, this is bad. This is the main reason why we need to define an offial 'preload' stage for all developer. For vtiger develper this means that 'preload' is before Loader.php
but after config.inc.php
.
Here all the official PHP entrypoints supported by vtiger are listed. Any entrypoint not present in this list should not perform the 'preload' stage.
- index.php
- webservice.php
This is how the various stages are loaded in runtime.