|
-
Oct 26th, 2011, 01:57 AM
#1
[RESOLVED] Creating user.class and using singletone pattern for PDO
Hi guys 
I'm creating a user class with methods like login, registration, etc.. I'm going to use PDO instead of using the standard mysql functions.
My question is, do I have to declare a new object of PDO globally in the beginning or to use something like a separate class for it with single tone pattern ?
I found this link saying about it : http://php.net/manual/en/language.oop5.patterns.php
As you are the professionals, I would like to know the professional approach when using PDO.
Thanks
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|