0
對此,我已經下載Yii-Booster Widgets以使用TBRelationalColumn。在配置文件中定義Yii-Booster擴展
我已經下載從yiibooster.clevertech.biz yiibooster-4.0.1.zip文件擴展名和下
protected/extensions/booster
配置 保護的提取/配置/ local.php和main.php
<?php
Yii::setPathOfAlias('booster', dirname(__FILE__).'/../extensions/booster');
Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
return array(
'components'=>array(
'db' => array(
),
'mongodb' => array(
'class' => 'EMongoDB',
),
'booster'=>array(
'class'=>'booster.components.Booster',
'coreCss' => true,
'responsiveCss' => true,
'yiiCss' => true,
),
'bootstrap'=>array(
'class'=>'bootstrap.components.bootstrap',
'coreCss' => true,
'responsiveCss' => true,
'yiiCss' => true,
),
'cache'=>array(
'class' => 'CFileCache',
),
),
);
時,即時通訊使用這個小工具即時得到電網結構,但JS是不啓用 的index.php
$this->widget('booster.widgets.TbExtendedGridView', array(
'id' => 'invite-grid',
'type' => 'striped condensed',
'dataProvider' => $arrayDataProvider,
'columns' => array(
'id',
'username',
'email',
array(
'class' => 'booster.widgets.TbRelationalColumn',
'name' => 'test',
'value' => '"grid"',
'url' => $this->createUrl('site/relational'),
'afterAjaxUpdate' => 'js:function(tr,rowid,data){
bootbox.alert("I have afterAjax events too!<br/>This will only happen once for row with id: "+rowid);
}'
),
)
));
當點擊網格我不能得到警報消息。請任何人都幫我解決這個問題
是的,我已經嘗試過給它,但不工作 – Silviaa 2014-09-24 03:35:46
檢查控制檯(chrome/ff),看看你是否得到任何奇怪的JS /網絡錯誤 – redGREENblue 2014-09-24 09:58:27