小编Kir*_*ula的帖子

CodeIgniter错误:变量引用

我在XAMPP中部署了我的源代码.我遇到了以下错误.

注意:在第257行的C:\ xampp\htdocs\3c_app\public_html\system\core\Common.php中只能通过引用返回变量引用
致命错误:在C:\ xampp\htdocs\3c_app中找不到类'CI_Controller'第233行的\ public_html\system\core\CodeIgniter.php.

我的源文件是:

的common.php

// Are any values being dynamically replaced?
    if (count($replace) > 0)
    {
        foreach ($replace as $key => $val)
        {
            if (isset($config[$key]))
            {
                $config[$key] = $val;
            }
        }
    }

    return $_config[0] =& $config;
}
Run Code Online (Sandbox Code Playgroud)

第257行是: return $_config[0] =& $config;

Codeigniter.php

// Fetch the config file
    if ( ! file_exists($file_path))
    {
        exit('The configuration file does not exist.');
    }

    require($file_path);
Run Code Online (Sandbox Code Playgroud)

第233行: if ( ! file_exists($file_path))

任何人都可以帮忙???

php codeigniter codeigniter-3

15
推荐指数
2
解决办法
6万
查看次数

标签 统计

codeigniter ×1

codeigniter-3 ×1

php ×1