Page 1 of 1

Extending PDO

Posted: Sat Apr 30, 2011 1:46 pm
by ChrisBull
I am running a site that is using a design pattern (can't remember what its called but its the one where you have a registry file that is on all pages and can store objects). Anyway, I need to create an object for database operations and would like to use PDO.

So i need to create a class that extends the pdo class.

Can someone either point me in the direction of a tutorial, a class someone has already made or outline the structure so i can make my own? I can't currently find a completed one online or a tutorial to make one.

many Thanks
Chris

Re: Extending PDO

Posted: Sat Apr 30, 2011 2:56 pm
by Weirdan

Code: Select all

class YourClass extends PDO {
  // ....
}