codeigniter - 无法访问受保护的属性 CI_DB_mysqli_driver::$_protect_identifiers
问题描述
我得到无法访问受保护的属性 CI_DB_mysqli_driver::$_protect_identifiers 代码如下
function xyz($use_protech_identifier = false)
{
$this->db->_protect_identifiers=$use_protech_identifier;
}
解决方案
检查这个。由于最新的 CI 版本,这可能会起作用。 从protect_identifiers 中删除_。
$this->db->protect_identifiers=$use_protech_identifier;
推荐阅读
- java - IntelliJ IDEA 在哪里保存运行/调试配置?
- javascript - JsPDF,如何获取 javascript 变量
- detox - 排毒 - 如何在不使用期望的情况下检查元素是否存在
- java - 如何将图像数据复制到 BufferedImage 的子类中?
- python - Arcade 的帧率问题
- javascript - 带有引导按钮的 AJAX 表填充
- android - 片段中ListView的android自定义适配器
- python - 如何获取列表中的索引
- python - 检查如何从 numpy 矩阵中删除特定元素?
- node.js - 如何使用 NodeJS 将数据添加到 MongoDB 中的数组属性?