UrlManager another one

Stuck with rules =)

Need to make a rule for f…Alot of variables.

link is gonna be like this site.ru/about/cats/black/first/heyty

So what’s the other way except copy/paste =)




...

'<id:\w+>'=>'site/index',

'<id:\w+>/<id2:\w+>'=>'site/index',

'<id:\w+>/<id2:\w+>/<id3:\w+>'=>'site/index',

...



Is there any other way to make array of variables through the urlManager?

Yes, there is.

You can use one of the newly added features of Yii 1.1.8 - check it out. ;)

I’ll leave what feature it is as an exercise for you.

  • Enh #2273: Used better merging algorithm to build query parameters that are of array type in CUrlManager =) whoa need to update to 1.1.8