當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TbHtml::activeTextFieldControlGroup方法代碼示例

本文整理匯總了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">
開發者ID:xunicorn,項目名稱:ebay-simple-watching,代碼行數:31,代碼來源:install.php

示例2:

    <?php

   echo TbHtml::activeTextFieldControlGroup($model, 'valorAdescontar');
  
   

   // Envío el id del tipo de coseguro a descontar
 //  echo TbHtml::hiddenField("Descuentocoseguro['iddescuentocoseguro']",$model->iddescuentocoseguro);
    
 ?>
開發者ID:juankie,項目名稱:gestcb9git,代碼行數:10,代碼來源:_form_valores3.php

示例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);
 }
開發者ID:imanifaiz,項目名稱:angular-music-db,代碼行數:13,代碼來源:TbActiveForm.php

示例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]'));
 }
開發者ID:AlexanderGrant1,項目名稱:AC41004,代碼行數:8,代碼來源:TbHtmlTest.php

示例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);
    
 ?>
開發者ID:juankie,項目名稱:gestcb9git,代碼行數:15,代碼來源:_form_valores4.php


注:本文中的TbHtml::activeTextFieldControlGroup方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。