Example #1
0
 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;
     }
 }
Example #2
0
 public function request($verb, array $params = [])
 {
     $this->field = $params['field'];
     parent::request($verb, $params);
 }
Example #3
0
 public function response()
 {
     if (!$this->deleted) {
         return parent::response();
     }
 }