0

cgridview 行の $Data を他のビュー ファイルに渡すにはどうすればよいですか? view.php ファイルと次のコードに Cgridview があります。cgridview コード

<?php 
$this->widget('bootstrap.widgets.TbGridView', array(
'type'=>'striped bordered condensed',
'id'=>'siteaccess-grid',
'dataProvider'=>$siteaccess->search(),
'filter'=>$siteaccess,
'columns'=>array(
    array('name'=>'ownerID', 'header'=>'Site Owner'),
    array('name'=>'siteID', 'header'=>'Site ID'),
    array(
        'class'=>'bootstrap.widgets.TbButtonColumn',
        'htmlOptions'=>array('style'=>'width: 10px'),
        'template'=>'{dashboard}',
        'buttons'=>array (
            'dashboard' => array (
                'label' => 'Open Dashboard',            
                'options' => array(
                    'data-toggle' => 'modal', 
                    'data-target' => '#myModal',
                ), 
                'icon' => 'briefcase',
                'csrf'=>true
            ),
        ),  
    ),
    ),
)
); 
?>

これは、モーダル ウィンドウに表示しているタブ コードです。cgridview の各行をクリックすると、タブが表示されるモーダル ウィンドウが起動し、タブの 1 つで _graph をレンダリングします。したがって、クリックされた行の $data を _graph に渡したいと思います。

$this->widget('bootstrap.widgets.TbTabs', array(
    'type'=>'pills',
    'tabs'=>array(
        array('label'=>'Dash1', 'id'=>'dash1',  'items'=> array(
            array('label'=>'Sub Dash1', 'id'=>'subdash1', 'content'=> $this->renderPartial('_graph', true, true)),

ここで、cgridview で選択した行 $data を _graph.php ファイルに渡します。どうすればこれを達成できますか?

4

1 に答える 1