B
B
byms2015-06-01 08:55:24
Yii
byms, 2015-06-01 08:55:24

How to disable bootstrap from the front?

I use www.yiiframework.com/extension/bootstrap , I need the admin panel on the bootstrap, but on the front I want to use foundation.zurb.com , how to disable the bootstrap styles connections. The admin panel is in modules.?

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


'modules' => array(
        'admin'=> array(
            'modules' => array(
                'user'=>array(
                    # encrypting method (php hash function)
                    'hash' => 'md5',

                    # send activation email
                    'sendActivationMail' => true,

                    # allow access for non-activated users
                    'loginNotActiv' => false,

                    # activate user on registration (only sendActivationMail = false)
                    'activeAfterRegister' => false,

                    # automatically login from registration
                    'autoLogin' => true,

                    # registration path
                    'registrationUrl' => array('/admin/user/registration'),

                    # recovery password path
                    'recoveryUrl' => array('/admin/user/recovery/recovery'),

                    # login form path
                    'loginUrl' => array('/admin/user/login'),

                    # page after login
                    'returnUrl' => array('/admin'),

                    # page after logout
                    'returnLogoutUrl' => array('/admin/user/login'),

                    #use bootstrap style?
                    'withBootstrap' => true,
                ),

                'gii'=>array(
                    'class'=>'system.gii.GiiModule',
                    'password'=>'1111',
                    // If removed, Gii defaults to localhost only. Edit carefully to taste.
                    'ipFilters'=>array('1.1.1.1'),
                    'generatorPaths'=>array(
                        // uncomment to use the twitter bootstrap generator
                        'ext.bootstrap.gii',
                        //'ext.giix-core', // giix generators
                    ),
                ),

            )
        ),

    ),

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Golubev, 2015-06-04
@wladyspb

In theory, styles are connected in the layout, if you have two layouts (for the admin panel and for the front), then in the second one you simply remove the corresponding line. If there is only one layout... You need to separate it)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question