一、調用相同模塊下不同控制器的action
// 在frontend\controllers\TestController\actionTest 方法中調用同一模塊下的 // frontend\controllers\NewController\actionNewAction 方法 Yii::$app->runAction('new/new-action');
二、調用不同模塊下的action
// 在frontend\controllers\TestController\actionTest 方法中調用另一個模塊下的 // backend\controllers\NewController\actionNewAction 方法 return (new NewController($this->id, $this->module))->runAction('new-action');
