/**
  * Returns a HTML label.
  *
  * @param CModel $model The model
  * @param string $attribute The attribute
  * @param array $htmlOptions
  *
  * @access public
  * @return string
  */
 public function label($model, $attribute, $htmlOptions = array())
 {
     if ($this->horizontal) {
         EBootstrap::mergeClass($htmlOptions, array('control-label', $this->controlLabelClass));
     } else {
         EBootstrap::mergeClass($htmlOptions, array('control-label'));
     }
     return EBootstrap::activeLabel($model, $attribute, $htmlOptions);
 }