Skip to content

Instantly share code, notes, and snippets.

@PrplHaz4

PrplHaz4/gist:6970887

Last active Nov 11, 2016
Embed
What would you like to do?
Creating a confirmation dialog box for a Yii submit button (CHtml::submitButton, CHtml::button, YiiBooster TbButton)
// YiiBooster TbButton
$this->widget('bootstrap.widgets.TbButton',array(
'label'=>'Make some action!',
'buttonType'=>'submit',
'visible'=>true,
'type' => 'primary',
'size' => '',
'icon' => 'ok',
'htmlOptions' => array(
'name'=>'ActionButton',
'confirm' => 'Are you sure you\'d like to submit this action?',
),
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment