2010-06-03 60 views
1

我有以下的Zend REST客户端问题

class ReservationController extends Zend_Controller_Action 
{ 
    public function init() 
    { 
    } 

    public function indexAction() 
    { 
     $this->_helper->viewRenderer->setNoRender(); 
     $this->_helper->layout->disableLayout(); 

     $soap = new Zend_Rest_Server(); 
     $soap->setClass('Someclass'); 

     $soap->handle(); 
    } 
} 

<?php 

class IndexController extends Zend_Controller_Action 
{ 
private $_URI = "http://www.mysite.local/crm/reservation"; 
    public function clientAction() { 
     $this->_helper->viewRenderer->setNoRender(); 
     $this->_helper->layout->disableLayout(); 
     $client = new Zend_Rest_Client($this->_URI); 
     echo $client->sayHello('nisanth')->get(); 

    } 

} 

和类和方法的代码为

<?php 
class Someclass 
{ 
/** 
* Say Hello 
* 
* @param string $who 
* @return string 
*/ 
function sayHello($who) 
{ 
    return "Hello $who"; 

} 
} 

但同时呼吁这个 我得到一个错误

​​

请帮我解决这个问题

+0

跨越相同的错误消息刚刚来到。 – davykiash 2010-06-09 19:28:59

回答