M
M
Monitorkin2016-01-20 00:16:43
Yii
Monitorkin, 2016-01-20 00:16:43

Yii2 Advanced on hosting - how to run the debugger and gii?

Yii2 Advanced is not installed locally, but on a linux hosting on the Internet, in this case debuger and gii are disabled by default.
Where and what to register in Yii2 Advanced to make it all work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Slashchinin, 2016-01-28
@Monitorkin

Try putting in the config:

'modules' => [
    'bootstrap' => ['gii','debug'],
    'gii' => [
        'class' => \yii\gii\Module::className(),
        'allowedIPs' => ['Ваш IP']
    ],
    'debug' => \yii\debug\Module::className(),
    // ..........
],

E
Evgeny Pavlenko, 2016-05-29
@I7cux2014eee

I'm getting a 404 error. It still doesn’t work (((
It turns out that you need to write it in the main-local.php file, yes?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question