array(
'header'=>'Manage',
'class'=>'CButtonColumn',
'template'=>'{Manage}',
//'visible'=>'$data->checkSub($data->sub_id)', //it not work not call function
'visible'=>Model::test(), //it works
'buttons'=>array(
'Manage Exam Result'=>array(
'label'=>'<i class="fa fa-cogs"></i>',
),
),
),
),
How to solve problem?