I'm getting the following error:
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
Here's the code:
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));
}