shuai 2015-11-10 18:39:14 9986次浏览 3条回复 1 2 0

在web.php 中找到 $config['modules']['gii']配置项,改为 $config['modules']['gii'] = [

    'class' => 'yii\gii\Module',
'allowedIPs'=>['*'],
'generators' => [
	'mongoDbModel' => [
		'class' => 'yii\mongodb\gii\model\Generator'
	],
]
];
觉得很赞
您需要登录后才可以回复。登录 | 立即注册