Global

The file global.php is included in every request (see index.php). Useful for helpers or middleware like session checks, constants, etc.

Example

<?php
// global.php
function isLogin(){ return isset($_SESSION['user']); }