Preload Configuration

Hi

According to this documentation

http://www.yiiframework.com/doc/api/1.1/GiiModule

it could be possible to preload some components for specific modules (in my case the gii module).

I want to preload the yii booster (http://yiibooster.clevertech.biz/) only for specific modules like gii, so


'modules' => array(

        // uncomment the following to enable the Gii tool


        'gii' => array(

            'preload' => array(

                'bootstrap',

            ),

            'class' => 'system.gii.GiiModule',

            'generatorPaths' => array(

                'bootstrap.gii'

            ),

            'password' => '321',

            // If removed, Gii defaults to localhost only. Edit carefully to taste.

            'ipFilters' => array('127.0.0.1', '::1'),

        ),

    ),

...

'components' => array(

        'bootstrap' => array(

            'class' => 'ext.bootstrap.components.Bootstrap',

            'responsiveCss' => true,

        ),

....

but it seems to not work,

what’s wrong?

Thanks

Ι found also a related post

http://www.yiiframework.com/forum/index.php/topic/35195-how-to-preload-extensions-in-main-application-only-not-modules/

but nothing works!

I found this one


class myModule extends CWebModule {

...

 public function init() {

 ...

 Yii::app()->getComponent("bootstrap");

 }

}

and it works! but why the preload way on configuration not works? (at least with bootstrap). Also in my case I have to make another module that extends the gii to set above code but isn’t so elegant…