Ver originalfunction __construct() { $this->db = new mysqli('localhost', 'root', '', 'protecms'); $this->db->set_charset('UTF8'); return $this->db; }