I'm running the following console command:
yii t/gen 520 34 -someoption --number=1
t/gen this is just an alias to the actual action
template/generate-preview I need to pass it on, or redirect, to another controller/action. So I do this:
Yii::$app->runAction('template/generate-preview', [ $ID, $count ]);
So the numbers 520 and 34 are passed on but how do I pass on the named parameters
number? They are options in the actual controller and therefore public properties of that controller (like here).
Is it possible pass on those named parameters, that is, set those properties on the controller class?