Hi,
probably its a php scope problem of a kind, i haven't encountered yet.
so help needed.
i reduces my files to the absolute minimum.
create_customer.php ... is the whmcs hook file for "ClientAdd".
WaWiApi.php ... contains the class wawi (in this test only the constructor)
wawidefintions.php .. contains settings for this Api
when calling from command line, with WHMCS stuff in comments and the function called seperately it works
php5 create_customer.php
in construct - mydatabases
string(4) "test"
in log_client_add - mydatabases
string(4) "test"
when undoing the commments for WHMCS Stuff and commenting out my function call, the hook is active.
creating a user in whmcs let the hook being called but $mydatabases does not get any information the output is:
in construct - mydatabases
NULL
in log_client_add - mydatabases
NULL
end log client
any ideas?
thx
Michael
create_customer.php.txt
WaWiApi.php.txt
wawidefinitions.php.txt