codeigniter-base-model icon indicating copy to clipboard operation
codeigniter-base-model copied to clipboard

Updated __construct() to add dbprefix

Open kbjohnson90 opened this issue 11 years ago • 1 comments

Proposed fix for Issue #150 (Support for DBPrefix)

kbjohnson90 avatar Jan 22 '14 14:01 kbjohnson90

Proposed fix for Issue #150 (Support for DBPrefix)

Use the class variable $_database to add dbprefix as opposed to assuming the default $this->db connection.

$this->_table = $this->_database->dbprefix($this->_table);

kbjohnson90 avatar Jan 22 '14 16:01 kbjohnson90