php - Gii doesn't load in custom build of Yii2 -
i'm using foundationize custom build of yii2, couple of years old in general seems run fine.
however, when i've come run gii tool generating new models etc. routing ignored , application's index page reloaded.
the url i'm trying access http://localhost/web/index.php?r=gii
i have line in index.php
defined('yii_env') or define('yii_env', 'dev'); and config/web.php contains following
if (yii_env_dev) { $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = [ 'class' => 'yii\gii\module', 'allowedips' => [$_server['remote_addr']], // allow on current server ];} am missing step somewhere? tried 'basic' setup main yii site , seemed work fine on same server. in advance.
for reason routing broken in install
instead of
http://localhost/web/index.php?r=gii
i used
http://locahost/web/index.php/gii
and fine
Comments
Post a Comment