Skip to content

Error: pdo extension not found #15

Answered by Gillingham
JoZ3 asked this question in Q&A
Discussion options

You must be logged in to vote

There's a simple fix:

diff --git a/src/Database/DbFactory.php b/src/Database/DbFactory.php
index a2fdee9..332f940 100644
--- a/src/Database/DbFactory.php
+++ b/src/Database/DbFactory.php
@@ -37,7 +37,7 @@ class DbFactory
      */
     public function getInstance()
     {
-        $className = '\Porter\Database\\' . $this->extension . 'Db';
+        $className = '\Porter\Database\\' . ucwords($this->extension) . 'DB';
         if (!class_exists($className)) {
             trigger_error($this->extension . ' extension not found.');
         }

That will get you past that step, unfortunately there seems to be other issues I'm hitting past that.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JoZ3
Comment options

Answer selected by JoZ3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants