Answer the question
In order to leave comments, you need to log in
how to make cnc pass data from yii form?
Good day!
The essence of the problem is that when entering data into the form and passing it through get in the address bar, it turns out like this
search/resut?SearchParam[type][1]=0&SearchParam[type][2]=1&SearchParam[from_area]=12&SearchParam[to_area] =11&SearchParam[from_price]=12&SearchParam[to_price]=100
How to make
search/resut/0/1/12/11/12/100 ?
Tried overriding CBaseUrlRule, but it only changes
search/resut/0/1/12/11/12/100?SearchParam[type][1]=0 and so on.
Those. does not change as needed.
Answer the question
In order to leave comments, you need to log in
For me, get-parameters should remain get-parameters in the address bar as well.
For example: search?type=0&type2=1&from_area=12&to_area=11&from_price=12&to_price=100 Will
this option work? In my opinion, much better than a bunch of incomprehensible numbers and slashes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question