What is the equivalent function of:
Yii::app()->runController('controller/action')
in Yii2? I would like to call a action from another controller in current controller.
Thanks.
This may work:
Yii::$app->runAction('controller/action');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With