/** * Returns label text for a model attribute * * @param CActiveRecord $model Model attribute belongs to * @param string $attribute Name of attribute * @return string Attribute label */ public function labelText($model, $attribute) { return BetterCHtml::activeLabelText($model, $attribute); }