The bootstrap file allows you to execute php code when the website / an application is loaded. It can be placed in two locations :
It is possible to use the bootstrap to extend an application. It is there events and view redirects can be used.