[Solved] using $this when not in object’s context error [duplicate]
[ad_1] You’re using $this in a static function. This is why you got the error. Remove the “static” in front of “insert()” and then call $insert->insert(); [ad_2] solved using $this when not in object’s context error [duplicate]