YiiBooster 拡張機能を使用して Yii を使用しています。次のようなポップオーバーが必要です。
array(
'header' => '',
'value' => function($data)
{
$this->widget('bootstrap.widgets.TbButton', array(
'label'=>'Inne',
'type'=>'primary',
'size' => 'mini',
'htmlOptions'=>array(
'data-placement'=>'right',
'data-content'=> "Controller::renderPartial('_statButtons',
array('data' => $data->idProject));",
'rel'=>'popover'
),
));
}
),
これは、グリッドビューのセル内にあります。renderPartial
一部のコンテンツを含むファイルをレンダリングするために使用したいのですが、上記のコードが機能しません。どうすれば達成できますか?
編集:コードが実行される場合(私のコードまたは@Ruslansコード)、結果は次のとおりです:
Here is the text from the _statButtons partial file. End of this file.
<a id="yw2" class="btn btn-primary btn-mini" rel="popover"
data-placement="right" data-original-title="" title="">Inne</a>