E
E
EVOSandru62016-03-25 21:09:11
Yii
EVOSandru6, 2016-03-25 21:09:11

Why is the start address duplicated in pagination in yii1?

Good afternoon,
There is such a problem, for all links createUrl is displayed normally, it is in pagination that strange links are generated with duplication of the starting address:
domen/module/controller/action/index/module/controller/action/index for the switch to the 1st page
domen/module/controller/action/index/module/controller/action/index//Controller_page/n for the rest of the paginator buttons.
The set of Url rules is standard:

'class'             =>  'CUrlManager', 
    'urlFormat'         =>  'path',
    'showScriptName'    =>  false, 
    'rules'             => [
        /** Клиентская часть */
        '<tenant:\d+>/'                                                         =>   'hotels/index',
        '<tenant:\d+>/<action:(login|logout|registration)>'                     =>   'users/<action>',
        '<tenant:\d+>/<action:\w+>'                                             =>  '<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>',
        '<module:manager>'                                                      =>   '<module>/default/index',
        '<module:manager>/<controller:\w+>/<id:\d+>'                            =>   '<module>/<controller>/view',
        '<module:manager>/<controller:\w+>'                                     =>   '<module>/<controller>/index',
        '<module:manager>/<controller:\w+>/<action:\w+>/<id:\d+>'               =>   '<module>/<controller>/<action>',
        '<module:manager>/<controller:\w+>/<action:\w+>'                        =>   '<module>/<controller>/<action>',
    ],
];

What could be the reason? Maybe someone came across?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question