mdmsoft/yii2-admin routes not working advanced template

391 views Asked by At

i'm trying to implement mdmsoft/yii2-admin with advanced template with this pull request but when i try add route to menu get error "Route "x" not found." if i try force add route via database the menu show an empty array.

enter image description here


enter image description here

1

There are 1 answers

0
janavi On

for this you need to create one inside config/main.php

'urlManager' => [
        'enablePrettyUrl' => true,
        'rules' => [ 
            'test/' => site(ControllerName)/test(actionName),
        ]
];

Let me know was this helpful or not.