public function __construct() { $this->p = array(); // inicializo p como un arreglo $this->pdo = Conectar::getCon(); //$this->pdo = new PDO('mysql:host=localhost;dbname=prueba123', 'root', 'toor'); // instancio el objeto pdo }