I'm rendering another view in my view.
use yii\base\View;
echo $this->render('current-view',array('test'=>'teeest'));
Now in other view - current-view.php
I want to get access to this parametres:
use yii\base\View;
var_dump($params);
var_dump(Yii::$app->view->params);
$params
returns Null
and $app->view->params
returns empty array. As I understand from here proper solution is second one, but why array is empty then? What I missing?