Php 致命错误:无法重新声明<;方法>;
我得到以下错误: 致命错误:无法在第2617行的/home/xxxxxxxxx/public\u html/vqmod/vqcache/vq2-system\u storage\u modification\u admin\u controller\u sale\u order.php中重新声明ControllerSaleOrder::saveValue() 代码如下:Php 致命错误:无法重新声明<;方法>;,php,Php,我得到以下错误: 致命错误:无法在第2617行的/home/xxxxxxxxx/public\u html/vqmod/vqcache/vq2-system\u storage\u modification\u admin\u controller\u sale\u order.php中重新声明ControllerSaleOrder::saveValue() 代码如下: public function saveValue() { $json = array(); if ($this-&g
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));
}
在vq2-系统\存储\修改\管理\控制器\销售\订单中。php有两个名为saveValue()的方法。重命名一个请共享您的完整代码。可能重复