J
J
JohnSky72019-02-27 21:56:16
Yii
JohnSky7, 2019-02-27 21:56:16

How to run gii on yii2 advanced in fronted?

Good evening, dear friends. I need your help. Looked at the beginning on the Internet different options. nothing helps. How to run gii on yii2 advanced in fronted? Well, or at least in the backend. I always get a 404 error. On the basic version, I could run this generator. On the extended version, hemorrhoids and pitfalls.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moses Fender, 2019-02-28
@mosesfender

Look in @frontend/config in main.php and main-local.php files for gii settings. Perhaps there is something disabled, or prohibited. Something like this should be:

if (!YII_ENV_TEST) {
    $config['bootstrap'][]      = 'gii';
    $config['modules']['gii']   = [
        'class' => 'yii\gii\Module',
    ];
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question