yii - Multiple GET parameters in UrlManager -


i using yii 1.1.14.

i want convert
http://website.com/controller/action?param1=value1&param2=value2

http://website.com/value1/value2

how in urlmanager?

first, check hide index.php:

http://www.yiiframework.com/doc/guide/1.1/en/topics.url#hiding-x-23x

then, route in config.php should this:

'<param1:\w+>/<param2:\w+>'=>'mycontroller/myaction', 

the method myaction should accept $param1 , $param2 in constructor passed automatically yii.

this make app unable other controllers, because rule accept every route 2 words separated /


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -