Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created url in CUrlManager::GET_FORMAT while CUrlManager::PATH_FORMAT is active #1

Open
Deele opened this issue Mar 10, 2014 · 0 comments

Comments

@Deele
Copy link

Deele commented Mar 10, 2014

While current language is "en", "urlFormat" is "path", when you create URL

$url = Yii::app()->getUrlManager()->createUrl('controller/view', array('id' => 2, 'content-language' => 'ru'));

You get an url, that is in CUrlManager::GET_FORMAT like this

var_dump($url); // "/en/controller/view?id=2&content-language=ru"

While I expected it to be in CUrlManager::PATH_FORMAT like this

var_dump($url); // "/en/controller/view/id/2/content-language/ru"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant