2017 © Pedro Peláez
 

yii2-extension yii2-js-error-handler

Yii2 javascript errors handler

image

tunect/yii2-js-error-handler

Yii2 javascript errors handler

  • Sunday, July 23, 2017
  • by dvatri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Javascript errors handler for Yii2 framework

This module catches all frontend javascript errors, sends error info with AJAX request and saves this data to database., (*1)

Installation

Run to install extension:, (*2)

composer require tunect/yii2-js-error-handler

Run migration:, (*3)

./yii migrate

It's possible to add custom migration paths since Yii2 2.0.10 (module adds it's path in tunect\Yii2JsErrorHandler\Bootstrap file), (*4)

That's it, module will work. Additional settings are optional., (*5)

Module settings

To specify module name (default name is js-error-handler) set it in index.php or in config file (before config goes to Application constructor):, (*6)

\tunect\Yii2JsErrorHandler\Module::$moduleName = 'custom-js-error-handler';

Module settings can be changed in app config:, (*7)

'modules' => [
    'js-error-handler' => [
        'class' => 'tunect\Yii2JsErrorHandler\Module',
        'tableName' => '{{%custom_table_name}}',
        'roles' => function () {
            return [\app\models\User::ROLE_ADMIN];
        },
    ],
],

Note: Settings should be specified both in web and console app configs since this module has a migration. Or you can use common config, merge config parts, etc., (*8)

By default '@' (any authenticated user) role will be used, but any other role(s) can be defined in roles module property (see example above). It can take scalar value, array or callable., (*9)

Errors info

Errors grid view available on page /js-error-handler (the name module was registred with, if you changed Module::$moduleName - use your value as a path)., (*10)

TODO

  • Implement errors search
  • Implement delete / batch delete for errors

The Versions

23/07 2017

dev-master

9999999-dev

Yii2 javascript errors handler

  Sources   Download

BSD-3-Clause

The Requires

 

by Tunect

23/07 2017

1.0.7

1.0.7.0

Yii2 javascript errors handler

  Sources   Download

BSD-3-Clause

The Requires

 

by Tunect

23/07 2017

1.0.6

1.0.6.0

Yii2 javascript errors handler

  Sources   Download

BSD-3-Clause

The Requires

 

by Tunect

30/03 2017

1.0.5

1.0.5.0

Yii2 javascript errors handler

  Sources   Download

BSD-3-Clause

The Requires

 

by Tunect

30/03 2017

1.0.4

1.0.4.0

Yii2 javascript errors handler

  Sources   Download

BSD-3-Clause

The Requires

 

by Tunect

01/03 2017

1.0.3

1.0.3.0

Yii2 javascript errors handler

  Sources   Download

BSD-3-Clause

The Requires

 

by Tunect

26/01 2017

1.0.2

1.0.2.0

Yii2 javascript errors handler

  Sources   Download

The Requires

 

by Tunect

26/01 2017

1.0.1

1.0.1.0

Yii2 javascript errors handler

  Sources   Download

The Requires

 

by Tunect

26/01 2017

1.0.0

1.0.0.0

Yii2 javascript errors handler

  Sources   Download

The Requires

 

by Tunect