Silentscripter / laravel-prestashop-webservice

Laravel 5 wrapper for Prestashop Web Service Library
MIT License
56 stars 34 forks source link

get() function #6

Closed 1110815AdamSilva closed 8 years ago

1110815AdamSilva commented 8 years ago

Hey, I'm trying to use the get function to simply retrieve the list of all the customers:
public function get() { $opt['resource'] = 'customers'; $data=$this->prestashop->get($opt); return view('admin.user.info')->with('data', $data);

    }

But it's retrieving also the request header, the response header and the http body, instead of returning a simple XML to treat the data. Attached is an image showing what I get. Am I doing something wrong? photo

Silentscripter commented 8 years ago

Hi, this happens because the debug property in the prestashop-webservice.php config file is set to true. You must set it to false to hide these messages.

1110815AdamSilva commented 8 years ago

That's not the problem. The debug is set to false in the prestashop-webservice.php