1. »
  2. »

Domnio

Config.php is the main variables and settings file. All root paths, basic flags and databases are defined here.

Initiation

It is stored in a single return array and called at the beginning of the index.php file.

 

<?php

$configFolder = __DIR__ . '/../production/config/';

$config = require_once($configFolder . ‘config.php');

$config is called in any method as global var at the beginning (Class structure)

Database settings

variable

description

default

host

 

localhost

user

Database connect username

 

dbPass

Database connect password

 

db

main database name

 

charset

character set

utf8

Admin settings

variable

description

default

username

 

 

hostAdmin

 

 

root

 

 

 

 

 

 

 

 

    Service & Support