我試圖啓動gii生成器,但由於某種原因無法啓動。我在web服務器上工作,而不是在我的本地主機。 我設置了GII在配置文件中是這樣的:無法啓動gii生成器
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*', '192.168.178.20', '195.178.49.18'],
];
}
你得到任何錯誤? – lalithkumar
我在瀏覽器中輸入以下鏈接 - https://「project domain」/index.php?r=gii - 然後進入我的項目頁面,其中顯示「找不到頁面」。 –
https://「project domain」/index.php/gii ..如果你試試這個也是同樣的信息,你會得到什麼? – lalithkumar