Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced config for yii2-advanced template doesn't show module actions correctly #422

Open
kurrata opened this issue Jun 25, 2019 · 1 comment

Comments

@kurrata
Copy link

kurrata commented Jun 25, 2019

common/config/params.php

'mdm.admin.configs' => [
        'advanced' => [
            'app-backend' => [
                '@common/config/main.php',
                '@common/config/main-local.php',
                '@backend/config/main.php',
                '@backend/config/main-local.php',
            ],
            'app-frontend' => [
                '@common/config/main.php',
                '@common/config/main-local.php',
                '@frontend/config/main.php',
                '@frontend/config/main-local.php',
            ],
            'app-api' => [
                '@common/config/main.php',
                '@common/config/main-local.php',
                '@api/config/main.php',
                '@api/config/main-local.php',
            ],
        ],
    ],

api/config/main.php

'modules' => [
        'v1' => [
            'class' => 'api\modules\v1\Module',
        ],
    ],

admin/routes doesn't see actions that are in v1 module. If you move v1 module definition from api/config/main.php to common/config/main.php it shows up as module for frontend/backend/api

@deviardn
Copy link

common/config/params.php

'mdm.admin.configs' => [
        'advanced' => [
            'app-backend' => [
                '@common/config/main.php',
                '@common/config/main-local.php',
                '@backend/config/main.php',
                '@backend/config/main-local.php',
            ],
            'app-frontend' => [
                '@common/config/main.php',
                '@common/config/main-local.php',
                '@frontend/config/main.php',
                '@frontend/config/main-local.php',
            ],
            'app-api' => [
                '@common/config/main.php',
                '@common/config/main-local.php',
                '@api/config/main.php',
                '@api/config/main-local.php',
            ],
        ],
    ],

api/config/main.php

'modules' => [
        'v1' => [
            'class' => 'api\modules\v1\Module',
        ],
    ],

admin/routes doesn't see actions that are in v1 module. If you move v1 module definition from api/config/main.php to common/config/main.php it shows up as module for frontend/backend/api

did you solve this problem? I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants