yii2-gii icon indicating copy to clipboard operation
yii2-gii copied to clipboard

Generator creates incorrect paths for nested namespaces.

Open SamMousa opened this issue 8 years ago • 0 comments

What steps will reproduce the problem?

Generate a model in a scenario where the "base" namespace is nested, for example:

base: vendor\package
controller namespace: vendor\package\controllers
model namespace: vendor\package\models
query namespace: vendor\package\queries

What's expected?

There should be some way to tell Gii that my application source dir matches the namespace source\package.

What do you get instead?

A new folder is created under my application root, names package; then the models / queries are created in subfolders of that folder.

Additional info

Q A
Yii version 2.11.3?
PHP version 7.1.1
Operating system Alpine

SamMousa avatar May 02 '17 13:05 SamMousa