Skip to content

Instantly share code, notes, and snippets.

@PrplHaz4
Last active November 11, 2016 12:40
Show Gist options
  • Save PrplHaz4/6970887 to your computer and use it in GitHub Desktop.
Save PrplHaz4/6970887 to your computer and use it in GitHub Desktop.
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