阅读背景:

PHP - 启动数据库类的最佳位置在哪里?

来源:互联网 

I recently took my Db initiating code out of the __construct of my Page class and placed it just after I initiate the Page class. I removed it from within the Page class because I want to be able to access it from anywhere (other classes for example). It also takes server, username, password and database arguments to it when initiated, and I don't wish to enter these every time.I recently took my Db initiating code out of th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: