Esempio n. 1
0
 function init()
 {
     Yii::app()->bootstrap;
     Yii::app()->params['useBootstrap'] = true;
     parent::init();
     $this->menuTitle = Yii::t('common', 'Operations');
 }
Esempio n. 2
0
 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);
 }