小编gal*_*dia的帖子

COdeigniter Datamapper ORM php 7静态问题

当我将我的服务器升级到php7 codeigniter,特别是datamapper ORM给我这个错误...

消息:访问静态属性DataMapper :: $ config为非静态
文件名:libraries/datamapper.php行号:6474

有问题的功能是......

protected function _dmz_assign_libraries()
{
    static $CI;
    if ($CI || $CI =& get_instance())
    {
        // make sure these exists to not trip __get()
        $this->load = NULL;
        $this->config = NULL;
        $this->lang = NULL;
        // access to the loader
        $this->load =& $CI->load;
        // to the config
        $this->config =& $CI->config;
        // and the language class
        $this->lang =& $CI->lang;
    }
}
Run Code Online (Sandbox Code Playgroud)

orm codeigniter datamapper

5
推荐指数
1
解决办法
841
查看次数

标签 统计

codeigniter ×1

datamapper ×1

orm ×1