schmunk42 / yii2-giiant

Yii 2 Framework Code Generator Gii on Steroids
271 stars 120 forks source link

Adding essential configuration for Gii module #272

Closed SilverPreece closed 4 years ago

SilverPreece commented 4 years ago

Just a quick documentation update to ensure that essential configuration for the Gii module is in the main README under the installation instructions, so developers don't need to go looking for it.

schmunk42 commented 4 years ago

Actually, when thinking about it ... did auto-bootstrapping not work?

https://github.com/schmunk42/yii2-giiant/blob/master/composer.json#L37 https://github.com/schmunk42/yii2-giiant/blob/master/src/Bootstrap.php#L29

SilverPreece commented 4 years ago

Apologies for the false close. I messed up re-testing this. The Gii bootstrapping does not appear to be working for me. Do you know if I need to have anything in my own Yii setup for that to work? I checked the Yii extension documentation and it appears that it should be automatic...

SilverPreece commented 4 years ago

Going to close this again. Does appear like there may be a bug, I'll open an issue ticket.

The initial issue was fixed while I investigated an issue with another extension, which turned out to have the same cause. If Yii cannot find your /vendor directory, it does not load the extensions.php file with the customisations extensions need - but more to the point, it fails silently! That's why the extension was mostly working.

With that fixed, I am now running into an error where giiant tries to create files, but cannot find the folder to create them in. The namespace is given in the extension's config and the app's root namespace is known to Composer, so I'm not sure why that is. This error did not occur before I fixed the other issue so I think this is also related to the /vendor folder's location.