php - Cannot access gii module in yii -
i have integrated gii module in my config file
'modules' => array( 'gii' => array( 'class'=>'system.gii.giimodule', 'password'=>'pick password here', 'generatorpaths' => array( 'vendor.cornernote.gii-prefixmodel-generator', ), ), ), 'urlmanager'=>array( 'urlformat'=>'path', 'rules'=>array( 'gii'=>'gii', 'gii/<controller:\w+>'=>'gii/<controller>', 'gii/<controller:\w+>/<action:\w+>'=>'gii/<controller>/<action>', ), ), i accessed gii using next url.
http://local_host/_demo/index.php/gii/ i have got output
you not allowed access page. please help me
this problem caused due ipfilters. quick way test setting ipfilters false. 1 time works right ip address update can found using command yii::app()->request->userhostaddress. gii in main.php should
'modules'=>array( // uncomment next enable gii tool 'gii'=>array( 'class'=>'system.gii.giimodule', 'password'=>'admin', // if removed, gii defaults localhost only. edit taste. 'ipfilters'=>false, ), ), php yii gii
No comments:
Post a Comment