Skip to content

Instantly share code, notes, and snippets.

Last active Nov 11, 2016
What would you like to do?
Creating a confirmation dialog box for a Yii submit button (CHtml::submitButton, CHtml::button, YiiBooster TbButton)
// YiiBooster TbButton
'label'=>'Make some action!',
'type' => 'primary',
'size' => '',
'icon' => 'ok',
'htmlOptions' => array(
'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