简体   繁体   English

在Yii CMS上安装gii

[英]gii installation on Yii CMS

Can I add Gii( Yii extension) in Craft, which is a Yii CMS? 我可以在Craft(这是Yii CMS)中添加Gii(Yii扩展名)吗? If it can be added as extension, can you please give steps? 如果可以将其添加为扩展名,请说明一下步骤吗?

I have tried following given steps which were for Gii installation on Yii framework as below- 我尝试按照给定步骤在Gii框架上安装Gii,如下所示-

1) Extract the directories "giix-core" and "giix-components" from the downloaded archive into your application's protected/extensions directory. 1)从下载的存档中提取目录“ giix-core”和“ giix-components”到应用程序的protected / extensions目录中。

2) Configure the gii generator path in your application, like: 2)在您的应用程序中配置gii生成器路径,例如:

'modules' => array(
    'gii' => array(
        'class' => 'system.gii.GiiModule',
        'generatorPaths' => array(
            'ext.giix-core', // giix generators
        ),
    ),
),

3) Configure your application to automatically load the giix component classes when needed, like: 3)配置您的应用程序以在需要时自动加载giix组件类,例如:

'import' => array(
    ...
    'ext.giix-components.*', // giix components
),

but it resulted in nothing( no error ), 但这没有任何结果(没有错误),

http://dev.mysite.com/public/index.php?r=gii/ http://dev.mysite.com/public/index.php?r=gii/

gave same index page as 给了相同的索引页

http://dev.mysite.com/public/index.php . http://dev.mysite.com/public/index.php

What might me missing? 我可能会错过什么? Any help will be greatly appreciated. 任何帮助将不胜感激。 Thanks in advance. 提前致谢。

Craft在其发行版中剥离了Gii组件(以及许多其他不需要的组件),因此,如果不对某些Craft核心文件进行认真的黑客攻击,您将无法做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM