yii2-gii
yii2-gii copied to clipboard
Generator creates incorrect paths for nested namespaces.
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 |