我收到以下错误:
致命错误:无法在第2617行的/home/xxxxxxxxxx/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_controller_sale_order.php中重新声明ControllerSaleOrder :: saveValue()
以下是代码:
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 :(得分:0)
在vq2-system_storage_modification_admin_controller_sale_order.php中有两个名为saveValue()的方法。重命名一个