【问题标题】:Is there any need to run Bootstrap in GII?是否需要在 GII 中运行 Bootstrap?
【发布时间】:2012-12-26 07:19:48
【问题描述】:

如果需要为引导运行 Gii,那么我应该运行哪个生成器以及应该运行哪个名称?

这是我的代码:

Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');

return array(
'theme'=>'bootstrap', // requires you to copy the theme under your themes directory
'modules'=>array(
    'gii'=>array(
        'generatorPaths'=>array(
            'bootstrap.gii',
        ),
    ),
),
'components'=>array(
    'bootstrap'=>array(
        'class'=>'bootstrap.components.Bootstrap',
    ),
),
);

【问题讨论】:

  • 请任何人帮忙。我在其中挣扎

标签: php javascript ajax twitter-bootstrap yii


【解决方案1】:
`enter code here` 'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'admin',
            'generatorPaths'=>array(
                'bootstrap.gii',
            ),
        ),

【讨论】:

  • 你应该试着解释你的答案是做什么的。
猜你喜欢
  • 2012-07-25
  • 2018-02-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多