namespace DBP;
class PDOTestClass {
function __construct(){
try {
$this->pdo = new PDO("mysql:host=localhost;dbname=test;",'root','');
}
catch(PDOException $e) {
die("Error ". $e->getMessage());
}
}
}
Файл test.php
require("PDOTestClass.php");
$ptc = new DBP\PDOTestClass();
Не пойму почему такой класс не найден?
Ошибка:
Fatal error: Class 'DBP\PDO' not found in PDOTestClass.php on line 9