Revision #6 has been created by MetaCrawler on Jun 21, 2016, 6:52:16 PM with the memo:
Reverted to revision #4
« previous (#5) next (#7) »
Changes
Title
unchanged
YII2: Create console commands inside a module or extension
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
yii2, tutorial, config
Content
changed
[...]
(I named it "example_commands" for this instructions)
Generate new module from commandline with gii (or use gii-webinterface)
```php
command> yii gii/module --moduleID=example_commands --moduleClass="app\modules\example_commands\Module
"
Running 'Module Generator'...[...]
{
if ($app instanceof \yii\console\Application) {
$app $this->controller
Map[$this->id] = [
'class'Namespace =
> 'app\modules\example_commands\commands
\TestingController',
'module' => $this,
]';
}
}
}
[/code]
```[...]