Referencing a module component class in GridView
Posted
by
keeg
on Stack Overflow
See other posts from Stack Overflow
or by keeg
Published on 2012-12-14T20:58:02Z
Indexed on
2012/12/15
5:04 UTC
Read the original article
Hit count: 725
yii
|yii-extensions
I'm loading bootstrap into a module:
'modules'=>array(
'admin'=>array(
'preload'=>array('bootstrap'),
'components'=>array(
'bootstrap'=>array(
'class'=>'ext.bootstrap.components.Bootstrap',
'responsiveCss' => true,
),
)
),
),
in a GridView I'm trying to create a TbButtonColumn:
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
'htmlOptions'=>array('style'=>'width: 50px'),
),
This returns a CException
Property "CWebApplication.bootstrap" is not defined.
as it points to a bootstrap in the main config app which obviously doesn't exist, how do I reference bootstrap when it is loaded in the module?
I tried:
components.bootstrap.widgets.TbButtonColumn
admin.components.bootstrap.widgets.TbButtonColumn
admin.bootstrap.widgets.TbButtonColumn
© Stack Overflow or respective owner