BASE_URL
public
mixed
BASE_URL
= $_ENV["DOMAIN"]
public
mixed
BASE_URL
= $_ENV["DOMAIN"]
public
mixed
DBHOST
= $_ENV["DB_HOST"]
public
mixed
DBNAME
= $_ENV["DB_NAME"]
public
mixed
DBPASSWORD
= $_ENV["DB_PASSWORD"]
public
mixed
DBPORT
= $_ENV["DB_PORT"]
public
mixed
DBUSER
= $_ENV["DB_USER"]
Setting basic configuration data.
public
mixed
ROOT
= __DIR__
Defining global variables for working with paths, connecting to a database, and so on.
This function is responsible for the logic of class autoloading.
custom_autoload_function(string $class) : void
First, it tries to connect the class from the core directory, if nothing is found there, it tries to parse the function name into a path (the directories are separated using the camel case).
Class name