platx / yii2-http-error-helper
Helper for triggering http exceptions
Installs: 2 355
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2020-10-09 02:48:31 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!') ?>