Developer Center

testConnection()

When the “Test Connection” button on the "Admin Area > Services > Service Management > Module Settings > The Module" page is clicked, “controllers/test_connection.php” file that is in module directory is run. In this file, data coming from the form are edited and it is run by sending parameters to setConfig() function.

Later, testConnection() function is run.

You should return boolean (true or false).

public function testConnection(){
    if(!$this->api->connect()){
        $this->error = $this->api->error;
        return false;
    }

    return true;
}
 
setConfig() use_method()

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top

New Year's Special Discount

"Startup Lifetime" and "Professional Lifetime" licenses are 30% off!

Coupon Code:
HAPPYYEARS30 Copied!
Discount Rate 30%
Expiration Date December 31, 2024