UrlManager, create an url with title and without an id in it

Hey guys,

I want to do something like the following:

I’ll take the blog tutorial as example: http://www.yiiframework.com/doc/blog/1.1/en/final.url

Finally I want to do something like this rule here:




'post/<id:\d+>/<title:.*?>'=>'post/view',

except I’d like to have the urls look like that:


'<title:.*?>'=>'post/view',

So, I just want to have: www.test.com/<title of my post>

Is this possible? If yes … how? Have I to write a function for this or how could I do this?

Thanks so much in advance guys!

Check here and here, they may help you.

Also, see yiibehaviorsluggable.