Tôi đã triển khai mã nguồn của mình trong XAMPP. Tôi nhận được lỗi sau.Lỗi CodeIgniter: tham chiếu biến
Notice: Only variable references should be returned by reference in C:\xampp\htdocs\3c_app\public_html\system\core\Common.php on line 257
Fatal error: Class 'CI_Controller' not found in C:\xampp\htdocs\3c_app\public_html\system\core\CodeIgniter.php on line 233.
file nguồn của tôi là:
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;
}
dòng 257 là: return $_config[0] =& $config;
và
Codeigniter.php
// Fetch the config file
if (! file_exists($file_path))
{
exit('The configuration file does not exist.');
}
require($file_path);
dòng 233: if (! file_exists($file_path))
Bất kỳ ai có thể trợ giúp không ???
Bạn không nên thay đổi tệp lõi. Mã ứng dụng nào gây ra lỗi này? Bạn có thể chỉnh sửa câu hỏi của mình và đăng mã bộ điều khiển ứng dụng dẫn đến lỗi không? – Tpojka
Có thể trùng lặp của [Chỉ tham chiếu biến nên được trả về bằng tham chiếu - Codeigniter] (http://stackoverflow.com/questions/28348879/only-variable-references-should-be-returned-by-reference-codeigniter) –