title: Yii2 How to call controller action from the view
body: <p>I have a function in the controller that manipulates data the way I wanted. Now I want to call that function in the <code>index.php</code> file in the <code>view</code>. How do I do that?</p>
  
  <p>In my controller</p>
  
  <pre><code>function actionTesting($params){
      .....
  }
  </code></pre>
  
  <p>How can I call it in the view like..</p>
  
  <pre><code>&lt;?php
     echo $this-&gt;testing($params);//Calling unknown method: yii\web\View::testing()
  ?&gt;
  </code></pre>