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

Custom Model Template #149

Open
bwragg opened this issue Jun 11, 2019 · 1 comment
Open

Custom Model Template #149

bwragg opened this issue Jun 11, 2019 · 1 comment

Comments

@bwragg
Copy link

bwragg commented Jun 11, 2019

Hi,

Is it possible to specify a custom model template using enhanced-gii? Im trying something like this:

'enhanced-gii-model'=>[ 'class' => 'mootensai\enhancedgii\model\Generator', 'templates'=>[ 'isasmodel' => '@backend/custom-gii-templates/model/default', ] ],

but can't see it in the drop down list.

My paths are right because if I do something like this:

'model'=>[
'class' => 'mootensai\enhancedgii\model\Generator',
'templates'=>[
'isasmodel' => '@backend/custom-gii-templates/model/default',
]
],

I can see it in the normal Model generator.

Thanks

@demonking
Copy link

@mootensai
You need to merge this pull request #153 to fix the Problem

My looks like this one:

`
'enhanced-gii-crud' =>
[
'class' => 'mootensai\enhancedgii\crud\Generator',
'templates' => [
'custom' => '@backend/views/yii2-enhanced-gii/crud/custom/'
]
],
'enhanced-gii-model' =>
[
'class' => 'mootensai\enhancedgii\model\Generator',
'templates' => [
'custom' => '@backend/views/yii2-enhanced-gii/model/custom/'
]
],

`

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