0

このページにはブートストラップ スキンがありますが、ドロップダウン ナビゲーション バーにリストを表示する、ボタンの読み込みオプションも機能しない、グリッドが巨大であるなどのアクションが発生する理由がわかりません。

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>',
            ),
        ),?>

テーマにフォルダー名のブートストラップ、拡張機能にブートストラップ、拡張機能にブートストラップテーマがあります

4

2 に答える 2

0

ナビゲーション バーなどにドロップダウン リストを表示できるようにするために、ブーストラップを必要とする JavaScript をロードしていない可能性があります。

于 2014-05-06T13:03:20.403 に答える
0

コンポーネントセクションを修正

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

そうあるべきだと思う

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

于 2013-02-25T16:00:55.430 に答える