M
M
Maxim2014-03-21 20:35:19
Yii
Maxim, 2014-03-21 20:35:19

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

1 answer(s)
I
Ivan, 2014-05-14
@0neS

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 question

Ask a Question

731 491 924 answers to any question