How to create a custom mysql query and show it on a TbDetailView…
Pleae help…
Thanks…
How to create a custom mysql query and show it on a TbDetailView…
Pleae help…
Thanks…
here is my code
<?php
$this->widget(‘bootstrap.widgets.TbDetailView’, array(
'data' => ItemTransactions::model()->getMemberTransactions(),
'type' => 'bordered striped',
'attributes' => array(
array(
'name' => 'text',
'value' =>'value from query',
),
),
));
?>
Your solution is here, follow this wiki -
i need to show it on a TbDetailView not on a TbGridView.
hi
use
‘value’ =>$model->id,
i hope useful
<?php
$this->widget(‘bootstrap.widgets.TbDetailView’, array(
‘data’ => CustomQueryHere,
‘type’ => ‘bordered striped’,
‘attributes’ => array(
array(
‘name’ => ‘text’,
‘value’ =>‘value from query’,
),
),
));
?>