core/Form.php
public function getAllError()
    {
        $errors = [];
        $fields = $this->getFields();
        foreach ($fields as $name => $field) {
            if (!empty($field->error)) {
                $errors[$name] = $field->error;
            }
            if ($field->dataValDisabled == false) {
                if (!empty($field->childError) && is_array($field->childError)) {
                    foreach ($field->childError as $key => $err) {
                        $errors[$key] = $err;
                    }
                }
            }
        }
        return $errors;
    }
public function getAllError()
    {
        $errors = [];
        $fields = $this->getFields();
        foreach ($fields as $name => $field) {
            if (!empty($field->error)) {
                $errors[$name] = $field->error;
            }
            if ($field->dataValDisabled == false) {
                if (!empty($field->childError) && is_array($field->childError)) {
                    foreach ($field->childError as $key => $err) {
                        $errors[$key] = $err;
                    }
                }
            }
        }
        return $errors;
    }
获取所有错误
@return array