TbHtml::activeUneditableFieldControlGroup PHP 메소드

activeUneditableFieldControlGroup() 공개 정적인 메소드

Generates a control group with a uneditable field for a model attribute.
또한 보기: self::activeControlGroup
public static activeUneditableFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
리턴 string the generated control group.
    public static function activeUneditableFieldControlGroup($model, $attribute, $htmlOptions = array())
    {
        return self::activeControlGroup(self::INPUT_TYPE_UNEDITABLE, $model, $attribute, $htmlOptions);
    }

Usage Example

예제 #1
0
 /**
  * Generates a control group with an uneditable field for a model attribute.
  * @param CModel $model the data model.
  * @param string $attribute the attribute name.
  * @param array $htmlOptions additional HTML attributes.
  * @return string the generated row.
  * @see TbHtml::activeUneditableFieldControlGroup
  */
 public function uneditableFieldControlGroup($model, $attribute, $htmlOptions = array())
 {
     $htmlOptions = $this->processRowOptions($model, $attribute, $htmlOptions);
     return TbHtml::activeUneditableFieldControlGroup($model, $attribute, $htmlOptions);
 }
All Usage Examples Of TbHtml::activeUneditableFieldControlGroup
TbHtml