Reputation: 3441
I have the following text
Car/red
i want it to be sent withing the url ex:
http://ii/search/index/search/Car%2Fred/page/2
but doing so gives the "Search" query string only the "car" and ignore the "red" part how can we encode the slash so in can be sent within the URL ?
Upvotes: 4
Views: 1365
Reputation: 4708
If you're using urlFormat 'path' you're not able to submit slashes in parameters, because Yii can't distinguish between them. See Qiang's comment.
As a workaround set:
'urlManager'=>array(
'appendParams'=>false,
),
Your URL should look like this then:
http://ii/search/index?search=Car/red&page=2
You may also add rewrite rules for having the page param in a nicer way in the URL.
Upvotes: 3