本文整理汇总了PHP中TbHtml::activeTextFieldControlGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::activeTextFieldControlGroup方法的具体用法?PHP TbHtml::activeTextFieldControlGroup怎么用?PHP TbHtml::activeTextFieldControlGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TbHtml
的用法示例。
在下文中一共展示了TbHtml::activeTextFieldControlGroup方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<h1 class="offset1">Installation</h1>
<h2 class="offset1"><small>Enter admin credentials</small></h2>
<?php
if ($model->hasErrors()) {
?>
<?php
echo TbHtml::errorSummary($model);
?>
<?php
}
?>
<form method="post" class="form-horizontal">
<?php
echo TbHtml::activeTextFieldControlGroup($model, 'username');
?>
<?php
echo TbHtml::activePasswordFieldControlGroup($model, 'password');
?>
<?php
echo TbHtml::activePasswordFieldControlGroup($model, 'password_verify');
?>
<?php
echo TbHtml::activeEmailFieldControlGroup($model, 'email');
?>
<!--
<div class="span3 control-group">
<div class="controls">
示例2:
<?php
echo TbHtml::activeTextFieldControlGroup($model, 'valorAdescontar');
// Envío el id del tipo de coseguro a descontar
// echo TbHtml::hiddenField("Descuentocoseguro['iddescuentocoseguro']",$model->iddescuentocoseguro);
?>
示例3: textFieldControlGroup
/**
* Generates a control group with a text 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::activeTextFieldControlGroup
*/
public function textFieldControlGroup($model, $attribute, $htmlOptions = array())
{
$htmlOptions = $this->processRowOptions($model, $attribute, $htmlOptions);
return TbHtml::activeTextFieldControlGroup($model, $attribute, $htmlOptions);
}
示例4: testActiveTextFieldControlGroup
public function testActiveTextFieldControlGroup()
{
$I = $this->codeGuy;
$html = TbHtml::activeTextFieldControlGroup(new Dummy(), 'text');
$group = $I->createNode($html, 'div.control-group');
$label = $group->filter('label.control-label');
$I->seeNodeChildren($label, array('input[type=text]'));
}
示例5:
<?php
echo TbHtml::activeTextFieldControlGroup($model, 'valorAdescontar');
echo TbHtml::activeTextFieldControlGroup($model, 'cadaxpracticas',array( 'append' => 'prácticas', 'span' => 2));
// Envío el id del tipo de coseguro a descontar
// echo TbHtml::hiddenField("Descuentocoseguro['iddescuentocoseguro']",$model->iddescuentocoseguro);
?>