I\'m writing a small library in PHP and i\'m having some problems with built-in classes not being read. For example:
namespace Woody; class Test { public
The below should work:
namespace Woody; class Test { public function __construct() { $db = new \PDO(params); } }
You need to prefix PDO with the backslash so PHP knows it's in the global namespace.