aidiez Posted October 30, 2017 Share Posted October 30, 2017 (edited) Hi, I'm trying to override the fetch function of WebserviceRequest.php file. But when I override it, when I use the webservice doesn't work. Can anyone help me to solve this? How can I override the fetch function? I've tried this... class WebserviceRequest extends WebserviceRequestCore { public function fetch($key, $method, $url, $params, $bad_class_name, $inputXml = null) { parent::fetch($key, $method, $url, $params, $bad_class_name, $inputXml = null); myfile = fopen("method.txt", "a") or die("Unable to open file!"); $txt = "Metodo:\n".$this->method; fwrite($myfile, $txt); fclose($myfile); } } Thanks in advance. Edited October 30, 2017 by aidiez (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now