problem with namespace and PDO [duplicate]

2

asked by anonymous 30.10.2017 / 13:02

1 answer

0

He is interpreting the PDO as any class on your system, what you can do is:

You can change:

class Sql extends PDO{

To

class Sql extends \PDO{

Or import using the use command at the top of the document, below the namespace:

namespace classes\conexao;
use PDO

To continue this way:

class Sql extends PDO{
    
30.10.2017 / 13:09