How to extends

Discussion in 'Developers' Forum' started by MaamuT, Dec 4, 2015.

  1. MaamuT

    MaamuT Member


    I would like to add new features without changing the original file…

    Here my "exotic implementation" :

    require_once '../../lib/';
    $conf['start_session'] = false;
    require_once '../../lib/';
    if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
    $server = new SoapServer(null, array('uri' => $_SERVER['REQUEST_URI']));
    class myExtended_remote extends billing_remote {
    And the soap connexion file :
    $soap_username = 'userName';
    $soap_password = 'PassWord';
    $soap_location = 'https://localhost:1234/remote/myExtended.php';
    $soap_uri = 'https://localhost:1234/remote/';

    SOAP Error: Forbidden
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Extending the file should work (use the same way that the billing module endpoint billing.php uses). Maybe zjere is an issue in one of the code files, try to enable the error.log in the apache ispconfig.vhost file, restart apache and check the error.log to see if you get any php errors during soap connect.
  3. MaamuT

    MaamuT Member


    So, my build is correct ?

    Ok, big mystake, bad chown :/

    After correction, i have a new error message who said the login finction don't exist…

    Hm, billing extends remoting, but i can't extends billin with my class ?

    billing extends remote => login function ok

    myclass extends billing => logon function not exist… :/

Share This Page