Hi,
I must be missing something trivial but I’m unable to find out my way:
In actionIndex:
$page = Yii::$app->request->get('page');
Yii::$app->view->params['page'] = (isset($page)) ? $page : 1;
In view:
[
'attribute' => 'myAttribute',
'format' => 'raw',
'value' => $this->params['page'],
View throws an undefined index ‘page’ error.
Is it not
Yii::$app->view->params['page']
supposed to be accesible anywhere like a global var?
If not, which is the proper way of doing this?
Thanks in advance,
Antonio