public function request($verb, array $params = []) { parent::request($verb, $params); if ($verb == \Carbo\Http\Verb::Post) { $this->form_data->update($this->table, @$_POST['row'], @$_FILES['row'], $this->key, $this->value, @$_POST['link']); $this->headers['Location'] = '../../..'; $this->code = \Carbo\Http\Code::Found; } }
public function request($verb, array $params = []) { parent::request($verb, $params); if ($verb == \Carbo\Http\Verb::Post) { if ($this->da->delete($this->table, [$this->key => $this->value])) { $this->headers['Location'] = '../../..'; $this->code = \Carbo\Http\Code::Found; $this->deleted = true; } } }
public function request($verb, array $params = []) { $this->field = $params['field']; parent::request($verb, $params); }