Answer the question
In order to leave comments, you need to log in
How to remove form title in Yii2 get request?
The error is that when passing in a get request, the form name and field are passed each time.
http://Site.loc/exchange?ExchangeSearchForm%5Bcountry_id%5D=&ExchangeSearchForm%5Bcountry_id%5D%5B%5D=1&ExchangeSearchForm%5...
Answer the question
In order to leave comments, you need to log in
This is not the name of the form, in fact it is the name of the model, and then removing it will have to dance with a tambourine so that model->load() and your SearchModel would work. But this is solvable.
The main questions are:
why not hide this bunch of parameters in the POST request?
why not rename "ExchangeSearchForm" to "Esf" and all the parameters (attributes) can be reduced to 2-3 characters, since such a locomotive is obtained? In this case, the changes will affect only the ExchangeSearchForm model.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question