This is how to get Gii working from a remote server for an advanced setup template.
In the frontend config file. For example:
/frontend/config/main-local.php
Add the following code:
if (!YII_ENV_TEST) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = 'yiidebugModule';
$config['bootstrap'][] = 'gii';
$config['modules']['gii']=[
'class' => 'yiigiiModule',
'allowedIPs' => ['*'],
];
}
The interesting part is the Gii array
which has been modified.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…