Issue
I am getting Cannot access protected property CI_DB_mysqli_driver::$_protect_identifiers Code as follows
function xyz($use_protech_identifier = false)
{
$this->db->_protect_identifiers=$use_protech_identifier;
}
Solution
Check this. May be this will work because of latest CI Version. Remove the _ from protect_identifiers.
$this->db->protect_identifiers=$use_protech_identifier;
Also refer the same answer I gave in https://stackoverflow.com/a/50738006/3449206
Answered By - Jimil Choksi
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.