本文整理汇总了PHP中Chtml::activeLabel方法的典型用法代码示例。如果您正苦于以下问题:PHP Chtml::activeLabel方法的具体用法?PHP Chtml::activeLabel怎么用?PHP Chtml::activeLabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chtml
的用法示例。
在下文中一共展示了Chtml::activeLabel方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
'todayBtn':'linked',
'language':'ru',
'weekStart':0
});
</script>
<?php
echo Chtml::activeLabel($model, '_tempTimeStart');
?>
<?php
$this->widget('CMaskedTextField', array('model' => $model, 'attribute' => '_tempTimeStart', 'mask' => '99:99', 'placeholder' => '*', 'htmlOptions' => array('class' => 'span1')));
?>
<?php
echo Chtml::activeLabel($model, 'duration');
?>
<?php
$this->widget('CMaskedTextField', array('model' => $model, 'attribute' => 'duration', 'mask' => '99:99', 'placeholder' => '*', 'htmlOptions' => array('class' => 'span1')));
?>
<?php
//echo $form->textFieldRow($model,'duration',array('class'=>'span1','maxlength'=>20));
?>
<?php
//echo $form->textFieldRow($model,'date_create',array('class'=>'span5'));
?>
<?php
//echo $form->textFieldRow($model,'date_delete',array('class'=>'span5'));
示例2:
<?php
echo Chtml::activeLabel($model, 'password');
echo Chtml::activePasswordField($model, 'password');
?>
</div>
<div class="row">
<?php
echo Chtml::activeLabel($model, 'email');
echo Chtml::activeTextField($model, 'email');
?>
</div>
<div class="row">
<?php
echo Chtml::activeLabel($model, 'telephone');
echo Chtml::activeTextField($model, 'telephone');
?>
</div>
<div class="row submit">
<?php
echo CHtml::submitButton('register');
?>
</div>
<?php
echo CHtml::endForm();
?>
</div><!-- form -->
示例3:
?>
<?php
echo CHtml::errorSummary($model);
?>
<div class="row">
<?php
echo Chtml::activeLabel($model, 'login');
echo Chtml::activeTextField($model, 'login');
?>
</div>
<div class="row">
<?php
echo Chtml::activeLabel($model, 'password');
echo Chtml::activePasswordField($model, 'password');
?>
</div>
<div class="row submit">
<?php
echo CHtml::submitButton('Войти');
?>
</div>
<?php
echo CHtml::endForm();
?>
</div><!-- form -->
<?php