codeigniter库UAgent在安装时给出了错误。这是错误:
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for Shared_Framework::__construct(),
called in /system/libraries/Loader.php on line 928 and defined
Filename: libraries/Shared_Framework.php
当我执行以下代码时会发生这种情况:
$this->load->library('Shared_Framework');
$this->load->library('Uagent');
这是手册所说的,但我无法弄清楚如何修复错误。以下是该库的链接,以防万一:http://www.vvvlad.com/resources/uagent
答案 0 :(得分:1)
构造函数要求您传递一个参数,只需加载这样的库:
$this->load->library('Shared_Framework',$params);