11
I am using php and building an MVC for my web application. I am to the step where I need to connect to my DB, look at the current URL, compare that to data in my DB, and then return the correct content from my DB to the user.
My question is, where should I put the code that connects to the DB and processes it? Would this go in the Model class?