yii2 - How to access gii using homestead -


i using homestead dev environment yii2 tutorial , problem cannot configure lines below access gii in http://hostname/index.php?r=gii

    'gii' => [     'class' => 'yii\gii\module',     'allowedips' => ['127.0.0.1', '::1', '192.168.0.*', '192.168.178.20']  ], 

i have gii working config in conf/web.php

if (yii_env_dev) {     // configuration adjustments 'dev' environment      $config['bootstrap'][] = 'gii';     $config['modules']['gii'] = [         'class' => 'yii\gii\module',         'allowedips' => ['192.168.56.1'],     ]; } 

using yii 2.0.4

look yii_env_dev in web.php file

forgot mention. if you're using vagrant, can share bootstrap.sh file creates yii2 enviroment ubuntu precise. not homestead needed @ all. drop me note if need it.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -