url with underscore

hi!

i have I doubt about with urlmanager: the way is giving the url for this rule

'evento/<tipo>/<titulo>' => 'evento/show',

is like this

http://localhost/mus…agonista+muerto

do you know what function can change to underscore instead of '+' some like:

http://localhost/mus…agonista-muerto

thanks in advanced!

  • means blank and is the result urlencode().

In order to convert + to -, you would need to do str_replace(' ','+',$getVar) when you call createUrl() method.

THANKS A LOT!