Consulta el posible error que tienes usando try & catch: try { $this->conexion = new PDO('mysql:host=' . $this->host . ';dbname=' . $this->dbname, $this->user, $this->pass); }catch(PDOException $e){ print $e->getMessage(); }