2017-04-01 1 views
-1

를 재 선언 할 수 없습니다 saveValue (라는 이름의 두 가지 방법이있다 vq2-system_storage_modification_admin_controller_sale_order.의 PHP에서치명적인 오류 : 나는 다음과 같은 오류 받고 있어요 <method>

public function saveValue() { 
    $json = array(); 
    if ($this->request->server['REQUEST_METHOD'] == 'POST') { 
    $post = $this->request->post; 
    $this->load->model('sale/order'); 
    $json['msg'] = $this->model_sale_order->saveNewValue($post); 
    } 
    $this->response->addHeader('Content-Type: application/json'); 
    $this->response->setOutput(json_encode($json)); 
} 

public function install() { 
    if ($this->request->server['REQUEST_METHOD'] == 'POST') { 
    $this->load->model('sale/order'); 
    $json['success'] = $this->model_sale_order->install(); 
    } 
    $this->response->addHeader('Content-Type: application/json'); 
    $this->response->setOutput(json_encode($json)); 
} 
+0

전체 코드를 공유하십시오. –

+1

[ "치명적인 오류 : 재 선언 할 수 없습니다 "] 가능한 복제본 (http://stackoverflow.com/questions/1953857/fatal-error-cannot-redeclare-function) –

답변

0

: 여기

Fatal error: Cannot redeclare ControllerSaleOrder::saveValue() in /home/xxxxxxxxxx/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_controller_sale_order.php on line 2617

코드입니다). 이름 바꾸기

관련 문제