2017-07-22 69 views

回答

0

检出yii \ helpers \ BaseConsole辅助类方法input()。

input('Enter your name'); 

会提示您输入姓名。

或者您可以为动作方法定义参数,以将值传递给动作。

static function actionDoSomething (arg1, arg2, ...);