platx/yii2-http-error-helper

Helper for triggering http exceptions

Installs: 2 325

Dependents: 1

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-10-20 14:24 UTC

README

Helper for triggering http exceptions

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist platx/yii2-http-error-helper "*"

or add

"platx/yii2-http-error-helper": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \platx\httperror\HttpError::the404('Not found!') ?>