i'm getting the "Uncaught Error: Using $this when not in object context" error on this code
public static function instance($settings)
{
if (self::$instance == NULL) {
self::$instance = new $this($settings);
}
return self::$instance;
}
}
frankly i don't know much about php so i would appreciate some help.
thanks in advance