【发布时间】:2021-08-10 23:28:43
【问题描述】:
下面的另一个代码有错误 致命错误:无法声明类 CI_Log,因为该名称已在第 27 行的 C:\xampp\htdocs\system\libraries\Log.php 中使用 错误就在这里>>> [在此处输入图片描述][1] [1]:https://i.stack.imgur.com/2LGtP.jpg
类 CI_Log {
protected $_log_path;
protected $_threshold = 1;
protected $_date_fmt = 'Y-m-d H:i:s';
protected $_enabled = TRUE;
protected $_levels = array('ERROR' => '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4');
【问题讨论】:
-
您的第二个错误意味着您已经导入了两次模块。也许你应该使用
require_once而不是require。 -
请一次只问1个问题,因为当您需要回答几个部分时,很难正确回答。
标签: php