TbHtml::customActiveControlGroup PHP Method

customActiveControlGroup() public static method

Generates a custom (pre-rendered) active form control group.
public static customActiveControlGroup ( string $input, CModel $model, string $attribute, array $htmlOptions = [] ) : string
$input string the rendered input.
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
return string the generated control group.
    public static function customActiveControlGroup($input, $model, $attribute, $htmlOptions = array())
    {
        $htmlOptions['input'] = $input;
        return self::activeControlGroup(self::INPUT_TYPE_CUSTOM, $model, $attribute, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
             'url'=>CController::createUrl('Datoimpositivo/verformulario'), //url to call.
            'update'=>'#formulario', //selector to update

 ))); 
  

 ?>
<?php  
            $mask = $this->widget('CMaskedTextField', array(
                'model' => $model,
                'attribute' => 'periodoinscrip',
                'mask' => '99/9999',
                'placeholder' => 'x',
                'htmlOptions' => array('size' => 9)
                    ), true);
            echo TbHtml::customActiveControlGroup($mask, $model, 'periodoinscrip');
//           
//        
//
?>
<?php

echo "<div class='control-group'>";
echo $form->labelEx($model, 'registracion', array('class' => 'control-label'));
echo "<div class='controls'>";

$this->widget('CJuiDateTimePicker', array(
    'model' => $model,
    'name' => 'Datoimpositivo[registracion]',
    'language' => 'es',
    'value' => $model->registracion ? $model->registracion:null,
All Usage Examples Of TbHtml::customActiveControlGroup
TbHtml