src/View/BaseForm.php
public function validateRequest($methodName)
    {
        $methodName = strtolower($methodName);
        foreach ($this->directMethodList as $value) {
            if ($methodName == $value)
                return true;
        }
    }
public function validateRequest($methodName)
    {
        $methodName = strtolower($methodName);
        foreach ($this->directMethodList as $value) {
            if ($methodName == $value)
                return true;
        }
    }
Validate request from client (browser)

@param string $methodName called from the client
@return boolean