I would stay away from using globals or the Singleton pattern (which is essentially global), and try to find alternatives. In addition, you are talking about connecting to a database using the Singleton template, you are saying that there will never be more than one database connection, while this is usually true in small applications, as they grow larger, you won’t be able to host multiple connections.
- , , /. MVC, , , /singleton, . .
, MVC, , ? , - .
, , factory factory.
, , , .
Singleton, :
...