Php 如何在yii中运行giix扩展

Php 如何在yii中运行giix扩展,php,yii,Php,Yii,我使用以下url来运行gii:localhost/path to index.php?r=gii,但只有gii模块不运行giix 请告诉我giix的正确配置 我的config.php是: 'import'=>array( 'application.models.*', 'application.components.*', ), 'gii' => array( 'class' => 'system.gii.GiiModule', 'passwor

我使用以下url来运行gii:
localhost/path to index.php?r=gii
,但只有gii模块不运行giix

请告诉我giix的正确配置

我的config.php是:

'import'=>array(
    'application.models.*',
    'application.components.*',
),
'gii' => array(
    'class' => 'system.gii.GiiModule',
    'password'=>'.......',
    'generatorPaths' => array(
        'ext.giix.generators', // giix generators
    ),
),
'components'=>array(
    'ext.giix.components.*', 
    'messages' => array ( // giix messages directory,giix is  and extension.
        'extensionBasePaths' => array(
            'ext.giix.messages', // giix messages directory.
        ),
    ),
),

根据Giix文档,您需要导入'ext.Giix-components.*',并且GeneratorPath应该是'ext.Giix-core'。因此,您的代码应该如下所示:

 'import'=>array(
        'application.models.*',
        'application.components.*',
        'ext.giix-components.*', // You need to import the giix component
    ),
    'gii' => array(
        'class' => 'system.gii.GiiModule',
        'password'=>'.......',
        'generatorPaths' => array(
            'ext.giix-core', // giix generator
        ),
    ),

你选择发电机吗?Giix未明确添加新发电机module@Sergery,我不能很好地理解..请详细帮助我。我是新手,非常感谢您的合作。谢谢当您转到localhost/path/index.php?r=gii-并且您可以选择生成器的路径