/** * Run TbButton widget * * @return string the rendering result */ public function render() { if (!empty(self::$TbButtonTypes[$this->type])) { $attributes = $this->prepareWidgetOptions($this->attributes); ob_start(); Yii::app()->controller->widget('TbButton', $attributes); return ob_get_clean(); } return parent::render(); }