dgtal
1
Hi. I’m working with gii generator in order to have a standard code for my projects.
With this code in my configuration file everything works fine.
'crud' => [
'class' => 'yii\gii\generators\crud\Generator',
'templates' => [
'mycrud' => '@app/templates/gii/mycrud/default',
]
],
Now i would like to customize the Generator file.
If i change the class in the config file to
'@app\templates\gii\mycrud\Generator'
i get the following error (even with forward slashes):
Class @app\templates\gii\mycrud\Generator does not exist
Obviously i’ve created a copy of Generator.php inside that path and changed the namespace inside the file.
What i’m doing wrong?
softark
(Softark)
2
Not
'@app\templates\gii\mycrud\Generator'
but
'app\templates\gii\mycrud\Generator'
dgtal
3
Facepalm
Sorry, i thought i tried that!
You’re right, thanks a lot!