Developers basics

    Let's start checking environment variables from your current installation. Go to your admin panel to the developer's area https://example.com/admin/developers, this section is hidden from the menu.

    You can see some information about your PHP configuration, environment variables such as $_SERVER, extension loaded, locales installed, Bludit constants and some Objects properties.

    Flow of loading files for admin panel

    These are the files loaded when some user goes to the admin panel.

    index.php
        bl-kernel/boot/init.php
        bl-kernel/boot/admin.php
            bl-kernel/boot/rules/60.plugins.php
            bl-kernel/boot/rules/69.pages.php
            bl-kernel/boot/rules/99.header.php
            bl-kernel/boot/rules/99.paginator.php
            bl-kernel/boot/rules/99.themes.php
            bl-kernel/boot/rules/99.security.php
            bl-kernel/admin/themes/default/init.php
            bl-kernel/admin/controllers/{CONTROLLER}.php
            bl-kernel/admin/themes/default/index.php
                bl-kernel/admin/controllers/{VIEW}.php

    Flow of loading files for site

    These are the files loaded when some user goes to the site.

    index.php
        bl-kernel/boot/init.php
        bl-kernel/boot/site.php
            bl-kernel/boot/rules/60.plugins.php
            bl-kernel/boot/rules/69.pages.php
            bl-kernel/boot/rules/99.header.php
            bl-kernel/boot/rules/99.paginator.php
            bl-kernel/boot/rules/99.themes.php
            bl-kernel/boot/rules/99.security.php
            bl-themes/{THEME_NAME}/init.php
            bl-themes/{THEME_NAME}/index.php

    Environment variables and constants

    Bludit provides different environment variables and constants with some pre-defined configuration.

    Another place where you can see environment variables defined is on the rules bl-kernel/boot/rules/, for example, the variables about content and pages are defined in bl-kernel/boot/rules/69.pages.php.