Example #1
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     $this->attachBehavior('BsWidget', new BsWidget());
     $this->copyId();
     if ($this->stateful) {
         echo BSHtml::statefulFormBs($this->layout, $this->action, $this->method, $this->htmlOptions);
     } else {
         echo BSHtml::beginFormBs($this->layout, $this->action, $this->method, $this->htmlOptions);
     }
 }