/** * Runs the widget. */ public function run() { $errorCss = $this->model->hasErrors($this->attribute) ? ' ' . CHtml::$errorCss : ''; echo CHtml::openTag('div', array('class' => 'control-group' . $errorCss)); parent::run(); echo '</div>'; }
/** * Runs the widget. */ public function run() { echo CHtml::openTag('div', array('class' => 'control-group ' . $this->getContainerCssClass())); parent::run(); echo '</div>'; }