PDO: extend or encapsulate?
| From: | tamouse mailing lists | Date: | Fri, 13 Jul 2012 05:06:22 +0000 |
| Subject: | PDO: extend or encapsulate? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-318468@lists.php.net to get a copy of this message | ||
It's Friday, so...
Yes, it's true, I have just started looking at using PDO instead of
mysqli -- a bit behind the times...
My question at this stage, is do people tend to extend the PDO class
for their own use, or encapsulate it in a class (or do most people use
it mostly in procedural code?)