How To Add Extension To The Module ?

Pls help me who knows: how can I correctly add extension to the module?

I use extension bootstrap, which is located in protected/modules/admin/extension/bootstrap (will used only in admin module)

I write in the protected/config/main.php such setting:


‘bootstrap’=>array( ‘class’=>‘admin.ext.bootstrap.components.Bootstrap’),


thinks that problem is somewhere here, but don’t know how to correctly write module’s extension in config?

Application was terminated with with excpetion "Alias "bootstrap.widgets.TbActiveForm" is invalid. Make sure it points to an existing directory or file."

The ext is for the protected/extensions directory. Your admin module is in application.modules.admin

You don’t need to put the extension on the module/admin folder just to be used by the module.

Did you add the alias in your config? For me, it’s:

Yii::setPathOfAlias(‘bootstrap’, dirname(FILE).’/../extensions/bootstrap’);

You will need that to be able to load your class with the path starting at ‘bootstrap’.