Aleksei Averchenko
Aleksei Averchenko

Reputation: 1776

In Yii, is there a way to have urlFormat => path but still pass query params with an ampersand?

Currently (in Yii 1.1.13) all createUrl methods put extra params in the 'path style', which means I cannot then override them by submitting a form, because they take precedence over those that come in a query string. Is there a way to always pass extra parameters in query string but still have the url look normal and not butt-ugly like with the get urlFormat?

Upvotes: 2

Views: 146

Answers (1)

Michael Härtl
Michael Härtl

Reputation: 8607

You can set appendParams to false in your urlManager component configuration.

Upvotes: 2

Related Questions