A
A
AlexSer2020-06-13 14:52:52
Yii
AlexSer, 2020-06-13 14:52:52

How to pass parameters to url on redirect in Yii2?

Can you guys pass parameters to url via render?
I just want to, when the action was launched, the parameters were immediately sent to the SearchModel to display data, for the filter.
Example url : /site/index
And I need rednder
url :/site/imdex?user=34¶ms=
i.e. when defining a user, the controller immediately sets filters for the user.
I hope you understand me..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-06-13
@AlexSer

Yes, you can. Example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question