/** * Constructor */ public function __construct() { parent::__construct(); $this->load->library('model/QueryBuilder'); $this->load->library('Enviroment'); $this->db = $this->getDb(); $this->_query = new QueryBuilder($this->db, false); $this->_query->setTable($this->_tabla); }