PHP - Data Access Layer

Posted by scarpacci on Programmers See other posts from Programmers or by scarpacci
Published on 2012-10-17T14:42:20Z Indexed on 2012/10/17 17:19 UTC
Read the original article Hit count: 189

Filed under:
|
|

I am currently reviewing a code base and noticed that a majority of the calls (along with DB connections) are just buried inside the PHP scripts. I would have assumed that like other languages they would have developed some sort of data access layer (Like I would do in .Net or Java) for all of the communication to the DB (or implemented MVC, etc). Is this still a common pattern in PHP or is there alternative methodologies/patterns for this technology? I am just trying to understand why the subs would have developed it this way.

Any insight/info on how experienced developers design an approach data access in PHP would be very much appreciated.

© Programmers or respective owner

Related posts about php

Related posts about database