console command
, like ./yii hello/world
.
I'm using yii-app-basic
.
what I want is not create console command in the dir commands/
but in a module
.
console command
, like ./yii hello/world
.
I'm using yii-app-basic
.
what I want is not create console command in the dir commands/
but in a module
.
1) Your module should implements BootstrapInterface :
2) Create your console controller in your module
commands
folder :3) Add your module to your app console configuration
config/console.php
:4) You can now use your command :
Here is a good Tutorial and Discussion.
Follow Below Steps on Tutorial: