0
我在我的CodeIgniter上安裝了zend_framework並加載了「Zend/Soap/AutoDiscover」。 現在我想將函數添加到autoDiscover併爲其生成WSDL。這是我做了什麼:在codeIgniter中使用zend_soap_autoDiscover
class Api extends CI_Controller {
public function update_profile() {
$this->load->library('zend');
$this->zend->load('Zend/Soap/AutoDiscover');
$autodiscover = new Zend_Soap_AutoDiscover();
$autodiscover->addFunction('hello');
$autodiscover->handle();
}
public function hello() {
return "Hello world";
}
}
我應該怎麼做才能解決這個問題?