There is some code
<?php echo '<pre>'; $client = new SoapClient("http://ip/ws/ws2.1cws?wsdl", array( "login" => "login", "password" => "pass", "cache_wsdl" => WSDL_CACHE_NONE, "trace" => 1, "exceptions" => 0, )); $json = $client->TovarToSite(); var_dump($json); ?> If I just create a file on the server, insert this code and open it through a browser - everything works. If I write the same code in the controller, it gives an error that there is no such function. What could be the problem?