开发者

UAgent CodeIgniter Library Installation Errors

开发者 https://www.devze.com 2023-01-13 17:04 出处:网络
The codeigniter library, UAgent, is giving me errors on installation. Here is the error: A PHP Error was encountered

The codeigniter library, UAgent, is giving me errors on installation. Here is the error:

    A PHP Error was encountered

    Severity: Warning

    Message: Missing argument 1 for Shared_Framework::__construct(), 
called i开发者_开发百科n /system/libraries/Loader.php on line 928 and defined

    Filename: libraries/Shared_Framework.php

This happens when I execute the following code:

$this->load->library('Shared_Framework');
$this->load->library('Uagent');

This is what the manual says to do but I can't figure out how to fix the error. Here is the link to the library just in case: http://www.vvvlad.com/resources/uagent


The constructor requires that you pass a parameter, just load the library like this instead:

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

精彩评论

暂无评论...
验证码 换一张
取 消