示例#1
0
 /**
  * @return mixed
  */
 public function clearAssocItem()
 {
     $hash = $this->input->post('hash');
     $urlId = $this->input->post('urlId');
     $listId = $this->input->post('listId');
     if (empty($hash) || empty($urlId) || empty($listId)) {
         return $this->jsonResponse(array('error' => true, 'message' => 'Bad Request'));
     }
     $this->load->model('product_model');
     $this->product_model->removeAssociations($urlId, $listId, $hash);
     return $this->jsonResponse(array('error' => false));
 }