Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
什么是等效函数:
Yii::app()->runController('controller/action')
在 Yii2 中?我想从当前控制器中的另一个控制器调用一个动作。
谢谢。
这可能有效:
Yii::$app->runAction('controller/action');