public function bindToController()
    {
        if ($this->controller->widget === null) {
            $this->controller->widget = new stdClass;
        }

        $this->controller->widget->{$this->alias} = $this;
    }
public function bindToController()
    {
        if ($this->controller->widget === null) {
            $this->controller->widget = new stdClass;
        }

        $this->controller->widget->{$this->alias} = $this;
    }
public function bindToController ( ) { if ( $ this -> controller -> widget === null ) { $ this -> controller -> widget = new stdClass ; } $ this -> controller -> widget -> { $ this -> alias } = $ this ; }
Binds a widget to the controller for safe use.
@return void
Binds a widget to the controller for safe use .