Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
PHP PDO Singleton usage in other classes
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markshall" data-source="post: 373019" data-attributes="member: 1872"><p>I just want to be able to do the whole getInstance() thing within the class. It throws an error. When I'm at my computer, I shall post the description of the error.</p><p></p><p>In class.core.php, I tried doing <span style="font-family: 'Courier New'">private static $_db;</span> but that never worked</p></blockquote><p></p>
[QUOTE="Markshall, post: 373019, member: 1872"] I just want to be able to do the whole getInstance() thing within the class. It throws an error. When I'm at my computer, I shall post the description of the error. In class.core.php, I tried doing [FONT=Courier New]private static $_db;[/FONT] but that never worked [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
PHP PDO Singleton usage in other classes
Top