protected function getMethod() { if (isset($_POST['_method'])) { return strtoupper($_POST['_method']); } else { return $_SERVER['REQUEST_METHOD']; } }