12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\commands;
- use yii\console\Controller;
- use yii\console\ExitCode;
- class HelloController extends Controller
- {
-
- public function actionIndex($message = 'hello world')
- {
- echo $message . "\n";
- return ExitCode::OK;
- }
- }
|