Skip to content

Documentation Fix Needed #2412

Description

@rhays816

#1613 the Validation Library @ Check If Error Exists.
You have:

Check If Error Exists
You can check to see if an error exists with the hasError() method. The only parameter is the field name:

if ($validation->hasError('username') { echo $validation->getError('username'); }

The code is missing the last parentheses in if statement.
Should be:

if ($validation->hasError('username')) { echo $validation->getError('username'); }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions