lebedyncrs/yii2-errorpicker

Provide global object which can contain all validation errors. It's userfull in REST API

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-07-07 13:26 UTC

This package is not auto-updated.

Last update: 2024-09-09 12:32:59 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist lebedyncrs/yii2-errorpicker

or add

"lebedyncrs/yii2-errorpicker": "*"

to the require section of your composer.json.

Usage

This extension provides global object for validation errros and is userfull in rest api when you should pick all error from each models and return response as json.

'components' => [
    'errorPicker' => [
        'class' => 'lebedyncrs\errorpicker\ErrorValidationPicker'
    ],
    ....
]

When you develop rest api global context for errors validation is very useful. This component provide that.