A
A
Alexander2016-12-19 18:19:08
Yii
Alexander, 2016-12-19 18:19:08

How to go from the project "out of the box" to the code generation page using GII?

when you type my_hostname/index.php?r=gii nothing happens...
in the file view - index.php there is
defined('YII_ENV') or define('YII_ENV', 'dev');
in the web.php settings everything is ok too.
How else can you get to this page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-12-19
@koshalex

Depends on whether 'enablePrettyUrl' is enabled => true
If so then hostname/gii
Also check that the module itself is included in the config:

'bootstrap' => ['log','gii'],
    'modules' => [
....
        'gii' => [
            'class' => 'yii\gii\Module',
            'allowedIPs' => ['ip_to_allow'],
            ]
....
        ],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question