Unable to open Gii in Yii Framework on localhost
<p>I am trying to open the gii module on my yii based project on localhost. But its not opening. I am using virtual hosts to access the project (<a href="http://pys.dev" rel="nofollow">http://pys.dev</a> not <a href="http://localhost/pys.dev" rel="nofollow">http://localhost/pys.dev</a>). </p>

<pre><code>if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
    'class' =&gt; 'yii\debug\Module',
    'allowedIPs' =&gt; ['127.0.0.2'],
];

$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
    'class' =&gt; 'yii\gii\Module',
];
}
</code></pre>