Class app\commands\HelloController
| Inheritance | app\commands\HelloController » yii\console\Controller | 
|---|---|
| Available since version | 2.0 | 
This command echoes the first argument that you have entered.
This command is provided as an example for you to learn how to create console commands.
Public Methods
| Method | Description | Defined By | 
|---|---|---|
| actionIndex() | This command echoes what you have entered as the message. | app\commands\HelloController | 
Method Details
This command echoes what you have entered as the message.
| public void actionIndex ( $message = 'hello world' ) | ||
| $message | string | The message to be echoed. |