How to send data from controller to another controller in yii2
<p>Can i get data that i got from controller, and then send it to another controller (in the same folder) in Yii2?</p>

<p>this is my SiteController:</p>

<pre><code>public function actionIndex()
{
...
 $data = Yii::$app-&gt;request-&gt;post();
 $reg_res = $data['ColoringForm']['region'];
...
</code></pre>

<p>i want to send $reg_res to my DataController:</p>

<pre><code> public function actionShowdata()
{
$reg_res ??
</code></pre>

<p>how can i do this?</p>