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

Code Template Option Does not appear #7

Closed
larry-tx opened this issue May 1, 2014 · 3 comments
Closed

Code Template Option Does not appear #7

larry-tx opened this issue May 1, 2014 · 3 comments

Comments

@larry-tx
Copy link

larry-tx commented May 1, 2014

Your instructions only address the installation using the Basic template while I am using the Advanced template. Will this extension work with the Advanced template? I've added the following to frontend/config/main.php:

'modules'    => [
            'gii'      => [
                'class'      => 'yii\gii\Module',
                'generators' => [
                    'giiant-crud'  => ['class' => 'schmunk42\giiant\crud\Generator'],
                    'giiant-model' => ['class' => 'schmunk42\giiant\model\Generator'],
                ]
            ],
                       ...

However, when I go to /gii, the only option that appears within the Code Template dropdown is the native \vendor\yiisoft\yii2-gii template, for both Model and CRUD. I've also tried placing it in common/config/main.php, and the result is the same.

How do I get the option for this set of templates to show up?

@schmunk42
Copy link
Owner

They should appear as separate generators on the Gii main screen.

bildschirmfoto 2014-05-01 um 16 19 40

Do you run your app in DEBUG mode, because that's the standard configuration.
But I'll also have to recheck giiant, had no time since Yii 2 has gone beta.

@larry-tx
Copy link
Author

larry-tx commented May 1, 2014

I'm running both frontend and backend in DEBUG mode, and what your screenshot shows definitely doesn't appear. What I've got is just the standard Welcome to Gii page with nothing else. I hope you get it working soon. It looks wonderful. If there's anything I can do to help, just let me know. I'm still struggling with coding in the Yii2, but I can test or whatever.

@schmunk42
Copy link
Owner

I made some major updates in the past day, could you check it again?

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