execut/yii2-javascript-handler Javascript error handler for Yii2


Javascript error handler for Yii2


Either run

$ php composer.phar require execut/yii2-javascript-handler "dev-master"

or add

"execut/yii2-javascript-handler": "dev-master"

to the `require` section of your composer.json file.


Add module inside web application config: `php return [

'modules' => [
    'javascriptHandler' => [
        'class' => Module::class,

]; `

Render widget inside your application layout: `php echo \execut\javascriptHandler\JavascriptHandlerWidget::widget([

'clientOptions' => [
    'test' => true,// delete this line for stopping sending a test exception

]); `

As a result, all javascript exceptions will throw php exceptions, that will be handled via yii2 error handler

0 0
1 follower
Yii Version: 2.0
License: Apache-2.0
Category: Error Handling
Developed by: eXeCUT
Created on: Sep 14, 2019
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions