yii 安裝gii 提示 Error 403

緣由是個人服務器綁定了ip,須要修改/config/main.php 的ipFilters值爲你的ip。
php


    'modules'=>array(
        // uncomment the following to enable the Gii tool
        
        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'123456',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters'=>array('192.168.1.31','::1'),
        ),
相關文章
相關標籤/搜索