TbHtml::activeFileFieldControlGroup PHP 메소드

activeFileFieldControlGroup() 공개 정적인 메소드

Generates a control group with a file field for a model attribute.
또한 보기: self::activeControlGroup
public static activeFileFieldControlGroup ( 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 activeFileFieldControlGroup($model, $attribute, $htmlOptions = array())
    {
        return self::activeControlGroup(self::INPUT_TYPE_FILE, $model, $attribute, $htmlOptions);
    }

Usage Example

예제 #1
0
 public function testActiveFileFieldControlGroup()
 {
     $I = $this->codeGuy;
     $html = TbHtml::activeFileFieldControlGroup(new Dummy(), 'file');
     $group = $I->createNode($html, 'div.control-group');
     $label = $group->filter('label.control-label');
     $I->seeNodeChildren($label, array('input[type=file]'));
 }
All Usage Examples Of TbHtml::activeFileFieldControlGroup
TbHtml