Answer the question
In order to leave comments, you need to log in
Why in yii1 get parameters are perceived differently in the client side and in the admin panel?
Good afternoon,
Tell me, why if I am in the client side - then when displaying GET parameters, they are displayed as an array:
hotel / 2
Array
(
[2] =>
[tenant] => 2
)
Array
(
[2/sadmin/bids/update/45] =>
)
Yii::app()
defines wrong values for: 'class' => 'DTenantUrlManager',
'urlFormat' => 'path', // path,get
'showScriptName' => false, // index.php
'rules' =>
[
'<tenant:\d+>/' => 'hotels/index',
'<tenant:\d+>/<action:(login|logout|registration)>' => 'users/<action>',
'<tenant:\d+>/<action:(contact)>' => 'site/<action>',
'<tenant:\d+>/<controller:\w+>/<id:\d+>' => '<controller>/view',
'<tenant:\d+>/<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<tenant:\d+>/<controller:\w+>/<action:\w+>' => '<controller>/<action>',
'<tenant:\d+>/<module:\w+>' => '<module>/default/index',
'<tenant:\d+>/<module:\w+>/<controller:\w>' => '<module>/<controller>/index',
'<tenant:\d+>/<module:\w+>/<controller:\w>/<id:\d+>' => '<module>/<controller>/view',
'<tenant:\d+>/<module:\w+>/<controller:\w>/<action:\w+>/<id:\d+>' => '<module>/<controller>/<action>/<id>',
'<tenant:\d+>/<module:\w+>/<controller:\w>/<action:\w+>' => '<module>/<controller>/<action>',
],
];
getRequestUri()
Class
method CHttpRequest
Did not override. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question