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