-1
,我發現了以下錯誤:致命錯誤:不能重新聲明<method>
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
下面的代碼:
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) –