run() public method

Runs the widget.
public run ( )
Ejemplo n.º 1
0
 public function run()
 {
     if ($this->buttons == null) {
         $this->buttons = array(array('type' => 'primary', 'label' => O::t('oprecx', 'OK'), 'url' => '#', 'htmlOptions' => array('data-dismiss' => 'modal')), array('label' => O::t('oprecx', 'Cancel'), 'url' => '#', 'htmlOptions' => array('data-dismiss' => 'modal')));
     }
     echo '</div><div class="modal-footer">';
     foreach ($this->buttons as $btn) {
         $this->controller->widget('bootstrap.widgets.TbButton', $btn);
     }
     echo '</div>';
     parent::run();
 }
 public function run()
 {
     $this->render('template_modal', ['types' => $this->types, 'orderId' => $this->orderId]);
     parent::run();
 }
Ejemplo n.º 3
0
 /**
  * Widget's run method
  */
 public function run()
 {
     parent::run();
     $this->registerPluginFiles();
 }