I have a problem with my Yii urlManager. I'm using the path format and want to pass multiple get variables. The url looks like that:
/Yii/app/de/user/admin/id/5/test/hello
my .htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteBase /Yii/app/
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
I tried with the urlManager, but it doesn't work with following rules:
'rules' => array(
'<language:\w+>/<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<language:\w+>/<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<language:\w+>/<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
)
The $_GET should look like this:
array(3) {
["/de/user/admin"]=> string(0) ""
["id"]=> string(1) "5"
["test"]=> string(5) "hello"
["language"]=> string(2) "de"
}
Can someone help me?
EDIT:
It musst work for a variable nummber of get parameters.