ソースコードを XAMPP にデプロイしました。次のエラーが発生します。
注意: 257 行目の C:\xampp\htdocs\3c_app\public_html\system\core\Common.php では、参照によって変数参照のみを返す必要があります
致命的なエラー: クラス 'CI_Controller' が C:\xampp\htdocs\3c_app に見つかりません\public_html\system\core\CodeIgniter.php の 233 行目。
私のソースファイルは次のとおりです。
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;
}
行 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);
233行目:if ( ! file_exists($file_path))
誰でも助けることができますか?