|Configs is a class which reads the connection info from a file called core.ini, stored in /project/configs folder. This is a standard way to store your connection info in a secure place.|
It is called through a singleton method because the Config info is always the same, so its best to have only one Config object, from which the other classes will read the information.
The logic here is to store the info in a standard and secure place, and make this info available to other classes through a Config singleton object.
Than, we have a DConnect class which provides a very easy way to retrieve a PDO Object.
$conn = DConnect::Connect()
So, when you're coding, you never have to worry about server, user, password, mysql UTF8 parameters again, its all pre-set!