Difference between #5 and #6 of
YII2: Create console commands inside a module or extension

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->controllerMap[$this->id] = [
 
                'class'
Namespace => 'app\modules\example_commands\commands\TestingController',
 
                'module' => $this,
 
            ]
';
}
}
}
[/code]
```
[...]
8 0
6 followers
Viewed: 66 226 times
Version: 2.0
Category: Tutorials
Written by: MetaCrawler
Last updated by: Luis Armando
Created on: Aug 6, 2015
Last updated: 6 years ago
Update Article

Revisions

View all history