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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -