Hey,
Now that I'm implementing namespaces, PDO is no longer being found. I'm doing:
$this->db = new PDO('mysql:dbname=db;host=localhost', 'root', '');
It's trying to find application\path\PDO.php which is not the case. I tried doing:
$this->db = new \PDO('mysql:dbname=db;host=localhost', 'root', '');
but that didn't work. The current namespace I'm using is:
use \application\database as Mapper;
Then I did:
$this->db = new Mapper\PDO('mysql:dbname=db;host=localhost', 'root', '');
But that was no good either. It keeps looking for a physical file PDO.php. Not sure where I'm going wrong?