Preload Configuration


According to this documentation

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

I want to preload the yii booster ( only for specific modules like gii, so

'modules' => array(

        // uncomment the following to enable the Gii tool

        'gii' => array(

            'preload' => array(



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

            'generatorPaths' => array(



            'password' => '321',

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

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




'components' => array(

        'bootstrap' => array(

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

            'responsiveCss' => true,



but it seems to not work,

what’s wrong?


Ι found also a related post

but nothing works!

I found this one

class myModule extends CWebModule {


 public function init() {





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…