src/Forms/Form.php
protected function getRequest()
    {
        // Check if current request handler has a request object
        $controller = $this->getController();
        if ($controller && !($controller->getRequest() instanceof NullHTTPRequest)) {
            return $controller->getRequest();
        }
        // Fall back to current controller
        if (Controller::has_curr() && !(Controller::curr()->getRequest() instanceof NullHTTPRequest)) {
            return Controller::curr()->getRequest();
        }
        return null;
    }
protected function getRequest()
    {
        // Check if current request handler has a request object
        $controller = $this->getController();
        if ($controller && !($controller->getRequest() instanceof NullHTTPRequest)) {
            return $controller->getRequest();
        }
        // Fall back to current controller
        if (Controller::has_curr() && !(Controller::curr()->getRequest() instanceof NullHTTPRequest)) {
            return Controller::curr()->getRequest();
        }
        return null;
    }
protected function getRequest ( ) { // Check if current request handler has a request object $ controller = $ this -> getController ( ) ; if ( $ controller && ! ( $ controller -> getRequest ( ) instanceof NullHTTPRequest ) ) { return $ controller -> getRequest ( ) ; } // Fall back to current controller if ( Controller :: has_curr ( ) && ! ( Controller :: curr ( ) -> getRequest ( ) instanceof NullHTTPRequest ) ) { return Controller :: curr ( ) -> getRequest ( ) ; } return null ; }
Helper to get current request for this form

@return HTTPRequest
Helper to get current request for this form