Hi everyone, I have a question about Yiibooster Toggle Column (TbToggleColumn). I don’t understand how should I customize this part of the example:
This means I should add an action called “actions” inside of my controller? Let’s say my view file reads like this:
$this->widget(
'bootstrap.widgets.TbGridView',
array(
'type' => 'striped bordered',
'dataProvider' => new CActiveDataProvider('Region', array('criteria' => array('condition' => 'id<5'))),
'template' => "{items}",
'columns' => array(
array('name' => 'country_code', 'header' => 'Country Code'),
array('name' => 'name', 'header' => 'Region Name'),
array(
'class' => 'bootstrap.widgets.TbToggleColumn',
'toggleAction' => 'example/toggle',
'name' => 'status',
'header' => 'Toggle'
),
)
)
);
how should I replace “example/toggle”? I’m confused