E
E
EVOSandru62016-02-23 13:23:44
Yii
EVOSandru6, 2016-02-23 13:23:44

Why in Yii1 Unable to process request?

Greetings!
The urlManager has the following 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>',
        '<module:sadmin>'                                         =>   '<module>/default/index',
        '<module:sadmin>/<controller:\w>'                         =>   '<module>/<controller>/index',
        '<module:sadmin>/<controller:\w>/<id:\d+>'                =>   '<module>/<controller>/view',
        '<module:sadmin>/<controller:\w>/<action:\w+>/<id:\d+>'   =>   '<module>/<controller>/<action>/<id>',
        '<module:sadmin>/<controller:\w>/<action:\w+>'            =>   '<module>/<controller>/

But at this address:
domen/2/somecontroller/view/id/87
I catch
Error 404
Unable to process request "2/somecontroller/view/id/87".

Help with advice, what could be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Сергей, 2016-02-23
@cd2005

Наверное запрос должен быть плана domen/2somecontroller/view/87

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question