Php 无法在gii模型生成器中创建模型

Php 无法在gii模型生成器中创建模型,php,yii,gii,Php,Yii,Gii,我无法在yii模型生成器中创建模型。(windows上的Xamp) 我正在按照 我在config/main.php文件中进行了更改。。。将数据库名称粘贴到“作为测试”。 我在数据库“test”中创建了一个用户表。 在使用gii时,它不会创建模型并向我显示错误 错误 表“用户”不存在 我不知道我错过了什么 这是我的config/main.php文件视图 'modules'=>array( // uncomment the following to enable the Gii

我无法在yii模型生成器中创建模型。(windows上的Xamp) 我正在按照

我在config/main.php文件中进行了更改。。。将数据库名称粘贴到“作为测试”。 我在数据库“test”中创建了一个用户表。 在使用gii时,它不会创建模型并向我显示错误

错误 表“用户”不存在

我不知道我错过了什么

这是我的config/main.php文件视图

    'modules'=>array(
    // uncomment the following to enable the Gii tool

    'gii'=>array(
        'class'=>'system.gii.GiiModule',
        'password'=>'gii',
        // If removed, Gii defaults to localhost only. Edit carefully to taste.
        'ipFilters'=>array('127.0.0.1','::1'),
    ),

), 
  /*
    'db'=>array(
        'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/test.db',
    ),*/
    // uncomment the following to use a MySQL database

    'db'=>array(
        'connectionString' => 'mysql:host=localhost;dbname=test',
        'emulatePrepare' => true,
        'username' => 'root',
        'password' => '',
        'charset' => 'utf8',
    ),

您是否检查过数据库是否包含任何用户表?当您尝试使用表名“user”创建模型时,是否在表名文本框的模型生成页面上显示建议?若在尝试生成模型时未显示表名,则测试数据库不包含用户表