在 控制器 里面
1 $controllerID = Yii::$app->controller->id;
2 $actionID = Yii::$app->controller->action->id;
在 视图 里面
1$controllerID = Yii::$app->controller->id;
2$actionID = Yii::$app->controller->action->id;
1 $controllerID = Yii::$app->controller->id;
2 $actionID = Yii::$app->controller->action->id;
1$controllerID = Yii::$app->controller->id;
2$actionID = Yii::$app->controller->action->id;