README.md 801 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
3
4
5
6
7
8
9
10
11
# amos-sondaggi

Plugin to make surveys.

## Installation

### 1. The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```bash
Aster's avatar
Aster committed
12
composer require elitedivision/amos-sondaggi
Marcello Pivanti's avatar
Marcello Pivanti committed
13
14
15
16
17
```

or add this row

```
Aster's avatar
Aster committed
18
"elitedivision/amos-sondaggi": "~1.0"
Marcello Pivanti's avatar
Marcello Pivanti committed
19
20
21
22
23
24
25
26
27
28
29
```

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


### 2. Add module to your main config in backend:
	
```php
<?php
'modules' => [
    'sondaggi' => [
Aster's avatar
Aster committed
30
        'class' => 'elitedivision\amos\sondaggi\AmosSondaggi'
Marcello Pivanti's avatar
Marcello Pivanti committed
31
32
33
34
35
36
37
38
    ],
],
```


### 3. Apply migrations

```bash
Aster's avatar
Aster committed
39
php yii migrate/up --migrationPath=@vendor/elitedivision/amos-sondaggi/src/migrations
Marcello Pivanti's avatar
Marcello Pivanti committed
40
41
42
43
44
45
46
```

or add this row to your migrations config in console:

```php
<?php
return [
Aster's avatar
Aster committed
47
    '@vendor/elitedivision/amos-sondaggi/src/migrations',
Marcello Pivanti's avatar
Marcello Pivanti committed
48
49
];
```