Jump to content

Baffled by error reported when using CURL


glenelkins

Recommended Posts

Hi

 

This one is wierd!

 

Im accessing a url, for example http://host.com/testing/test

 

Say it looks like this

 

class tempModel extends baseModel {

    public function testing() {

        $this->db->query ( "SQL QUERY HERE" ); // the db object is in baseModel

    }
}

 

class Testing extends baseController {

 

    public function test() {

 

        $_tempModel = new tempModel;

        $_tempModel->test();

 

    }

 

}

[/code]

 

to cut the story short, the url all works fine from the browser, but when using curl, it loads the model object but i then get this error:

 

Using $this when not in object context

 

This error is from $this->db->query  line.... what is going on?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.