Yii Bootstrap不工作,网格很大,下拉不起作用;t下降,开关无法下降


Yii Bootstrap not working, the grid is huge, the dropdowns don't drop, toggles fail to do so

页面有引导皮肤,但我不确定为什么有些操作,如在下拉导航栏上显示列表,按钮上的加载选项也不起作用,网格很大,等等。

Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'name project', 
    // preloading 'log' component
    'theme'=>'bootstrap',
    'preload'=>array('log', 'bootstrap'),
    // autoloading model and component classes
    'import'=>array(  
        'application.models.*', 
        'application.components.*',
        'ext.bootstrap-theme.widgets.*',
        'ext.bootstrap-theme.helpers.*',
        'ext.bootstrap-theme.behaviors.*',
    ),
    'language'=>'es',
    'modules'=>array(
        // uncomment the following to enable the Gii tool
        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'swjskowk',
            'ipFilters'=>array('127.0.0.1','::1'),
            'generatorPaths'=>array(
                'ext.bootstrap-theme.gii',
                'bootstrap.gii',
            ),
        ),
    ),
    // application components
    'components'=>array(
        'bootstrap'=>array(
            'class'=>'ext.bootstrap.components.Bootstrap',
        ),
        'user'=>array(
            // enable cookie-based authentication
            'allowAutoLogin'=>true,
        ),
        // uncomment the following to enable URLs in path-format
        'urlManager'=>array(
            'urlFormat'=>'path',
            'rules'=>array(
                '<controller:'w+>/<id:'d+>'=>'<controller>/view',
                '<controller:'w+>/<action:'w+>/<id:'d+>'=>'<controller>/<action>',
                '<controller:'w+>/<action:'w+>'=>'<controller>/<action>',
                'gii'=>'gii',
                'gii/<controller:'w+>'=>'gii/<controller>',
                'gii/<controller:'w+>/<action:'w+>'=>'gii/<controller>/<action>',
            ),
        ),?>

我有一个文件夹名称bootstrap on themes,一个bootstrap on extensions和bootstrap theme on extensions-again

修复组件部分

'bootstrap'=>array( 'class'=>'ext.bootstrap.components.Bootstrap', ),

我认为应该是

bootstrap'=>array( 'class'=>'bootstrap.components.Bootstrap', ),

可能是您没有加载需要boostrap的javascript以便能够在导航栏中显示下拉列表等等。