Class app\commands\HelloController

Inheritanceapp\commands\HelloController » yii\console\Controller
Available since version2.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

Hide inherited methods

MethodDescriptionDefined By
actionIndex() This command echoes what you have entered as the message. app\commands\HelloController

Method Details

actionIndex() public method

This command echoes what you have entered as the message.

public void actionIndex ( $message 'hello world' )
$message string

The message to be echoed.