Guest
05 Oct 2016 11:50

My first time using API, so this is probably me being stupid, but I'm getting ...

Notice: Undefined offset: 1 in /home/admin/web/domain.com/public_html/components/com_cobalt/api.php on line 467

I have tried '1' and 1 ...

$api = new CobaltApi(); $data = $api->records( '1', 'null', 'null', 'null', 'null', 'null', 'null', 'default', 'null', 'null', 'null', 'null' ); `` foreach($data['list'] AS $item) { echo $item->url; }

Any help appreciated.

Dale.

Last Modified: 12 Oct 2016


Sergey
Total posts: 13,748
12 Oct 2016 13:00

Null should not me in quotes like this 'null' but simply null. this error is because you did not enter order. Enter like this r.ctime DESC

Powered by Cobalt