sipro/industrial-areas

Sipro - Industrial Areas

1.0.2 2018-04-17 14:22 UTC

README

This plugin is used to map Sipro Industrial Areas.

Installation

1. The preferred way to install this extension is through composer.

add this row to your composer.json file

"sipro/industrial-areas": "dev-master"

2. Add module to your main config:

<?php
'modules' => [
    'industrialareas' => [
        'class' => 'sipro\industrialareas\Module',
    ],
],

3. Apply migrations

php yii migrate/up --migrationPath=@vendor/sipro/industrial-areas/src/migrations

or add this row to your migrations config in console:

<?php
return [
    '@vendor/sipro/industrial-areas/src/migrations',
];

4. Notification

There are 2 flag wich activate/deactivate the notification on:

  • creation of new industrial area => notify_email_on_create
  • update of an existing industrial area => notify_email_on_update

The notification email will be sent to all the user with the role INDUSTRIALAREAS_ADMINISTRATOR

set on your main config:

<?php
$modules['industrialareas'] = [
    'notify_email_on_update' => true,
    'notify_email_on_create' => true,
];