UAgent CodeIgniter库安装错误

时间:2010-08-31 14:46:25

标签: php codeigniter

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

1 个答案:

答案 0 :(得分:1)

构造函数要求您传递一个参数,只需加载这样的库:

$this->load->library('Shared_Framework',$params);