0

我正在寻找如何将 QuickBase API 集成到使用 CodeIgniter 框架开发的网站中,我将 api 添加为库

$this->load->library('quickbase', 'login','password', true, 'table');

当我打电话时显示错误

A PHP Error was encountered
Severity: Warning

Message: Missing argument 1 for QuickBase::__construct(), called in /var/www/vhosts/************/httpdocs/system/core/Loader.php on line 1099 and defined

Filename: libraries/quickbase.php

Line Number: 43

A PHP Error was encountered

Severity: Warning

Message: Missing argument 2 for QuickBase::__construct(), called in /var/www/vhosts/**************/httpdocs/system/core/Loader.php on line 1099 and defined

Filename: libraries/quickbase.php

Line Number: 43

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: un

Filename: libraries/quickbase.php

Line Number: 45

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: pw

Filename: libraries/quickbase.php

Line Number: 49 

先感谢您

4

1 回答 1

0

您的错误是因为 Quickbase API 文件的调用格式与 CodeIgniter 库需要使用的load->library语法不同。您需要阅读手册的创建库部分,然后创建您自己的与 CodeIgniter 兼容的 Quickbase 库,其中包含 Quickbase API 的文件。

于 2012-04-14T09:10:46.297 回答