在 控制器 里面
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;
时间: 2024-10-19 07:15:09
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;