function init() { Yii::app()->bootstrap; Yii::app()->params['useBootstrap'] = true; parent::init(); $this->menuTitle = Yii::t('common', 'Operations'); }
public function widget($className, $properties = array(), $captureOutput = false) { if ($className == 'bootstrap.widgets.TbButton') { if (isset($properties['htmlOptions'])) { return CHtml::submitButton($properties['label'], $properties['htmlOptions']); } else { return CHtml::submitButton($properties['label']); } } return parent::widget($className, $properties, $captureOutput); }