Skip to content

Commit

Permalink
Fixed #1288: Removed gii module from default console config
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed Nov 6, 2015
1 parent 3489197 commit 3a74333
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
4 changes: 0 additions & 4 deletions protected/humhub/config/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
return [
'id' => 'humhub-console',
'controllerNamespace' => 'humhub\commands',
'bootstrap' => ['gii'],
'modules' => [
'gii' => 'yii\gii\Module',
],
'components' => [
'user' => [
'class' => 'humhub\modules\user\components\User',
Expand Down
22 changes: 20 additions & 2 deletions protected/humhub/docs/guide/dev-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ return [
?>
```

## Enable Gii
## Enable Gii

### Web

Add following block to your local web configuration (/protected/config/web.php)

```php
return [
...
// ...
'modules' => [
// ...

Expand All @@ -41,4 +43,20 @@ return [
]
];
?>
```


### Console

Add following block to your local console configuration (/protected/config/console.php)

```php
return [
// ...
'bootstrap' => ['gii'],
'modules' => [
'gii' => 'yii\gii\Module',
],
// ...
];
```

0 comments on commit 3a74333

Please sign in to comment.