-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));
}
전체 코드를 공유하십시오. –
[ "치명적인 오류 : 재 선언 할 수 없습니다"] 가능한 복제본 (http://stackoverflow.com/questions/1953857/fatal-error-cannot-redeclare-function) –